[fpc-devel] Parallel Computing
Marco van de Voort
marcov at stack.nl
Tue Nov 4 12:22:45 CET 2008
In our previous episode, Boian Mitov said:
> True, in their case it is core pool. Another concern is that in multicore
> situation the operating systems tend to use spinlocks for the threads
> instead of context switching locks. This probably will lead to CPU waste if
> locks are used to suspend the threads in the pool.
Well, that is the responsibility of the programmer. He can choose between a
_paralel_ for and a non paralel one. But indeed it could be a waste if some
iterations of the for loop can last longer than others.
More information about the fpc-devel