[Haskell-cafe] Re: concurrent haskell: thread priorities

Simon Marlow marlowsd at gmail.com
Fri Jan 9 04:36:07 EST 2009

Neal Alexander wrote:
> Thomas DuBuisson wrote:
>>     It seems like we could get some priority based scheduling (and still
>>     be slackers) if we allow marked green threads to be strictly
>>     associated with a specific OS thread (forkChildIO?).
>> I think you want the GHC-only GHC.Conc.forkOnIO
> GHC.Conc.forkOnIO is helpful but doest work in this case - it doesn't 
> attach them to the same OS thread.

But it does attach the thread to a particular "virtual CPU" in the GHC RTS 
(we call them "capabilities"), with the intention that a virtual CPU 
corresponds more or less to a real CPU core.


More information about the Haskell-Cafe mailing list