Re:GHC 7 is released. with LLVM, improved inliner, improved ...
by oconnore on Thursday March 03, 2011 @03:40PM
(#2285668)
Why is GHC doing thread scheduling?
[ Parent
| on HN ]
Re:GHC 7 is released. with LLVM, improved inliner, improved ...
by dons on Thursday March 03, 2011 @04:07PM
(#2285786)
GHC provides a parallel programming model,
* K sparks scheduled over * M lightweight threads scheduled onto * N OS threads over * C hardware cores.
The runtime manages this, and does load balancing.
Re:GHC 7 is released. with LLVM, improved inliner, improved ...
by bretthoerner on Thursday March 03, 2011 @04:01PM
(#2285756)
(Disclaimer: I've never programmed Haskell or used GHC outside of Xmonad)
I'm pretty sure they use a M:N language-thread to OS-thread system. So they need to decide what thread to put "on" an OS-thread at any given time.