[Haskell-cafe] are forkIO threads event-driven?

Aran Donohue aran.donohue at gmail.com
Thu Apr 29 18:26:20 EDT 2010

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[2].

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?


[1] http://www.monkey.org/~provos/libevent/
[2] http://hackage.haskell.org/trac/ghc/ticket/635
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100429/54d05773/attachment.html

More information about the Haskell-Cafe mailing list