Queue thread

Jonathan M Davis jmdavisProg at gmx.com
Sun Nov 20 03:09:57 PST 2011


On Sunday, November 20, 2011 11:59:14 bioinfornatics wrote:
> Dear,
> I would like to know if they are a way to run run a queue thread an run
> (nb core * 2 + 1) = nb thread in same time
> 
> something like:
> size_t nb_core = 9;
> Queue q = new Queue( 9, process1, process2, process3 );
> q.run();

Look at std.parallelism. I don't know if it'll do quite what you want, but 
it's the closest that you'll find in Phobos.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list