
21 Sep
2012
21 Sep
'12
5:47 a.m.
* Kazu Yamamoto
Hello,
Non-threaded RTS would block FFI to C code. But it does not block file descriptors and sockets because the scheduler uses select(). To my experience, *simple* network programming with non-threaded RTS also works well except the case where we reach the limit of file descriptors for the process.
I need to correct the last sentence. It should be "we reach the limit of select(), 1,024 file descriptors".
Most of the modern systems provide a better alternative to select (epoll, kqueue etc.) which is used by the IO manager instead. They don't have such a low limit. Roman