News for hackers. Stuff that matters.
Re:Haskell is 4.2x as good as Erlang at lightweight concurre... by jrockway on Thursday August 20, 2009 @05:11PM (#776280)
You can compile your app with the threaded runtime, in which case the threads are scheduled amongst the available CPU cores.

Edit: The benchmark in question does just this, with 5 cores. So while the docs you cut-n-pasted are technically accurate, they do not apply to this particular run of this particular benchmark.

Re:Haskell is 4.2x as good as Erlang at lightweight concurre... by neilc on Thursday August 20, 2009 @05:14PM (#776288)
Well, fair enough: presumably GHC is creating 5 kernel threads under the covers, whereas the C implementation creates 503 kernel threads. Therefore the C implementation incurs approximately 100x the context-switching overhead. Once again, apples to oranges.

the threads are scheduled amongst the available CPU cores.

Actually, the per-CPU idle stats suggest that the Haskell program ran entirely on a single CPU, so it wasn't actually utilizing all 4 cores anyway.

Re:Haskell is 4.2x as good as Erlang at lightweight concurre... by jrockway on Thursday August 20, 2009 @05:27PM (#776331)
I think this is because a thread was never actually blocked.