[fpc-devel] Light weight threads for FPC

Florian Klaempfl florian at freepascal.org
Fri Dec 14 15:13:57 CET 2007


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.



More information about the fpc-devel mailing list