9 Apr
2007
9 Apr
'07
6:27 p.m.
On Mon, 09 Apr 2007 20:14:39 +0200, Jasper van de Gronde <th.v.d.gronde@...226...> wrote:
However, it would mean you're creating threads quite often (or having some kind of communication between threads to wake them), and I have no idea how expensive that would be.
It should be fairly straightforward -- maintain a pool of n threads (where n corresponds roughly to the number of processors), and submit work to them via work queues.
I suppose setting up a single bit of infrastructure for this purpose would probably serve us better than having people implement it ad-hoc everywhere. I may go ahead and do that since it's becoming apparent to me that we're not going to be able to ignore the thread issue for much longer.
-mental