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

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Apr 30 02:24:29 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

read "Writing High-Performance Server Applications in Haskell, Case
Study: A Haskell Web Server"

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list