[Haskell-cafe] concurrency vs. I/O in GHC

Bulat Ziganshin bulat.ziganshin at gmail.com
Sat Oct 23 16:44:52 EDT 2010

Hello Claude,

Saturday, October 23, 2010, 11:57:23 PM, you wrote:

>> Is that true? The last time we discussed this in Haskell Cafe the
>> conclusion I drew from the discussion was that unsafe foreign functions
>> block the current thread but not any other thread.

> The conclusion I drew was that "unsafe" foreign functions block the 
> current "capability" (OS thread) and any "threads" (Haskell forkIO etc)
> currently scheduled on that capability, but other capabilities and 
> threads continue executing as normal.

yes, it blocks entire capability but afaik only one haskell thread can
be scheduled on some capability at any concrete moment

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

More information about the Haskell-Cafe mailing list