[Haskell-cafe] Processor availability

Sebastian Sylvan sylvan at student.chalmers.se
Thu Jan 22 18:45:01 EST 2009


2009/1/22 Louis Wasserman <wasserman.louis at gmail.com>

> How might I go about finding out how many processors are available in a
> concurrent GHC program?  I have some code I'd like to parallelize, but I
> don't want to spawn a separate (even lightweight) thread for each of
> thousands of minor tasks.


Consider using Contorl.Parallel.Strategies which allows you to spark of
lightweight jobs that get run on a pool of threads.


-- 
Sebastian Sylvan
+44(0)7857-300802
UIN: 44640862
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090122/0e652a24/attachment.htm


More information about the Haskell-Cafe mailing list