[fpc-devel] Light weight threads for FPC

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Dec 14 15:38:55 CET 2007


On Fri, 14 Dec 2007 15:13:57 +0100
Florian Klaempfl <florian at freepascal.org> wrote:

> Mattias Gaertner schrieb:
> > See the OpenMP specs for more possible tuning parameters.
> > The pool can be extended by some of these abilities later, but for
> > now I only need a simple pool to demonstrate/test FPC with parallel
> > algorithms.
> 
> Such a thread pool can get rather tricky: first, you need some
> heuristics to detect if all worker threads are sleeping/in use and you
> need more worker threads. Further, making a good queueing
> implementation is not easy either because it should block as little
> as possible.

Very true.
That's why I don't want to reinvent the wheel and asked on this list
for existing code.


Mattias



More information about the fpc-devel mailing list