[Haskell-cafe] simple servers
es at ertes.de
Thu Sep 20 04:58:57 CEST 2012
Kazu Yamamoto (山本和彦) <kazu at iij.ad.jp> wrote:
> > 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.
Almost. Especially when interfacing with C code you should include the
"-threaded" option to GHC to link against the multi-threaded run-time
system. Otherwise your Haskell code will block your C code and
vice-versa. Also some concurrency features don't work properly in the
Not to be or to be and (not to be or to be and (not to be or to be and
(not to be or to be and ... that is the list monad.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: not available
More information about the Haskell-Cafe