
23 Oct
2010
23 Oct
'10
4:44 p.m.
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@gmail.com