How can I watch multiple files/socket to become readable/writable in Haskell? -
how watch several files/sockets haskell , wait become readable/writable?
is there select/epoll/... in haskell? or forced spawn 1 thread per file/socket , use blocking resource within thread?
the question wrong: aren't forced spawn 1 thread per file/socket , use blocking calls, get spawn 1 thread per file/socket , use blocking calls. cleanest solution (in language); reason avoid in other languages it's bit inefficient there. ghc's threads cheap enough, however, not inefficient in haskell. (additionally, behind scenes, ghc's io manager uses epoll-alike wake threads appropriate.)
Comments
Post a Comment