4 ms·
Why is GHC doing thread scheduling?
by oconnore 16y ago
Why is GHC doing thread scheduling?
- fp 16y agoHaskell (GHC at least) has lightweight user-level threads, similar to Erlang.
- bretthoerner 16y ago(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.
- dons 16y agoGHC 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.