[Haskell-cafe] concurrent haskell: thread priorities

2008-12-22 Thread Neal Alexander
From what i understand (correct me if I'm wrong): The threaded RT creates an OS thread for each CPU/core on the system and uses them to multiplex userland threads. These are context switched whenever they block/yield/gc and no priorities can be assigned. It seems like we could get some

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

2008-12-22 Thread Bulat Ziganshin
Hello Neal, Monday, December 22, 2008, 11:07:32 PM, you wrote: The threaded RT creates an OS thread for each CPU/core on the system and uses them to multiplex userland threads. These are context switched whenever they block/yield/gc and no priorities can be assigned. not exactly. amount of

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

2008-12-22 Thread Thomas DuBuisson
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 Suggestions like this are more motivation for the suggestion