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.

With best regards,
 Boian Mitov

-------------------------------------------------------
Mitov Software
www.mitov.com
-------------------------------------------------------
----- Original Message ----- From: "Marco van de Voort" <[EMAIL PROTECTED]>
To: "FPC developers' list" <[email protected]>
Sent: Tuesday, November 04, 2008 2:36 AM
Subject: Re: [fpc-devel] Parallel Computing


In our previous episode, Boian Mitov said:
BTW: The CUDA as example simply uses a thread pool. Maintaining a number of
cores pool will very much eliminate the thread creation.

True, but CUDA single threaded. So you would need a threadpool per thread
that can do _paralel_
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to