[Haskell-cafe] simple servers
Kazu Yamamoto ( 山本和彦 )
kazu at iij.ad.jp
Thu Sep 20 03:05:35 CEST 2012
Hi,
> Is it true that writing a simple server using forkIO now integrates
> native event loops implicitly?
Yes.
IO manager handles event driven stuff. Thanks to this, we can enjoy
(light) thread programming using forkIO.
> One last question. When writing C code, using epoll apis explicitly
> can impose some blocking. Is the same to be said for GHC.Event?
I don't understand your question.
All system calls issued from the network package use non-blocking.
You don't have to worry about blocking at all.
P.S.
This article would help:
http://www.iij.ad.jp/en/company/development/tech/mighttpd/
--Kazu
More information about the Haskell-Cafe
mailing list