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

Don Stewart dons at galois.com
Fri Apr 30 02:51:32 EDT 2010

> Hello Aran,
> Friday, April 30, 2010, 2:26:20 AM, you wrote:
> > 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
> afaik, yes. it's controlled by special i/o thread that multiplexes all
> i/o done via stdlibs. but ghc i/o manager can't use epoll/kqueue so
> it's appropriate only for small (or medium?) servers

Look at the recent work on the event library and replacing the IO


There's much more background on the new code here,


and some nice benchmarks


More information about the Haskell-Cafe mailing list