[Haskell-cafe] Re: are forkIO threads event-driven?
uzytkownik2 at gmail.com
Thu Apr 29 20:46:33 EDT 2010
On Thu, 2010-04-29 at 18:26 -0400, Aran Donohue wrote:
> Hi Cafe,
> In GHC, if a thread spawned by forkIO blocks on some network or disk
> IO, is the threading system smart enough not to wake the thread until
> an IO event occurs on its input/output? The Control.Concurrent
> documentation doesn't specify, and the previous discussions I could
> find on this topic are out-of-date. There is a years-old GHC ticket,
> too, recently revived.
> Put another way, is it possible yet to use forkIO for making a server
> to handle tens of thousands of concurrent network connections? If not,
> what is the best current Haskell/GHC way?
IIRC yes - they explicitly waits for read (waitForRead or something like
that) on GHC.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100429/247c8c6c/attachment.bin
More information about the Haskell-Cafe