
30 Apr
2010
30 Apr
'10
2:24 a.m.
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:Bulat.Ziganshin@gmail.com