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.
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to