[Haskell] Re: Strange behaviour of forkIO threads

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon May 15 07:05:00 EDT 2006


Hello Simon,

Monday, May 15, 2006, 2:04:38 PM, you wrote:

> It sounds like you are just falling foul of the fact that GHC only
> context switches when a thread is doing allocation; if it is sitting in
> a loop not doing any allocation then you won't see a context switch.  In
> GHC 6.6 you'll be able to work around this to some extent by using 2 
> processors.

you want to say "2 OS threads executing Haskell program in parallel" ?
i think that 6.6 will support this mode even on single-threading
processors?



-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell mailing list