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.zigans...@gmail.com

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to