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"
http://www.haskell.org/~simonmar/papers/web-server.ps.gz




-- 
Best regards,
 Bulat                            mailto:[email protected]

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to