[Haskell-cafe] Re: Threads with high CPU usage

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Dec 22 11:48:57 EST 2008


Hello Alistair,

Monday, December 22, 2008, 7:28:03 PM, you wrote:

> safe). I also was not aware of unsafe calls blocking other threads.

they don't to it directly. but without -threaded +RTS -N (or forkOS)
there is only 1 OS thread that runs all haskell threads. unsafe call
blocks it untill call finished, while safe call allows to reuse it for
other haskell threads execution. i've attached old ghc commentary on
this topic, although things may be significantly changed ATM


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: The GHC Commentary - Supporting multi-threaded
	interoperation.htm
Type: application/octet-stream
Size: 16646 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20081222/e26b53f0/TheGHCCommentary-Supportingmulti-threadedinteroperation.obj


More information about the Haskell-Cafe mailing list