On Fri, 15 Jun 2012, Mattias Gaertner wrote:

Hi,

FPC does not yet have parallel loops/procedures, but there is a unit
that helps to create parallel procedures/methods (mtprocs).

http://wiki.freepascal.org/Parallel_procedures

I use this unit since 4 years in several of my projects, which run on
linux, os x and windows. Not much was done on the unit in the last
years, because it simply works.

mtprocs implements a thread pool, although it is not a general
purpose one.

It uses one extra unit mtpcpu, which has a function to guess the number
of cores.

I think both features would be nice to have in fpc by default, so
maybe they should be added.

What do you think?

Pending language support for parallellism, I think this is a good idea.

Michael.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to