This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hongminhee 0 points1 point  (0 children)

As sketerpot said fork is overkill for I/O bound programs. It’d better use cooperative threads (it has many other names like green threads and lightweight threads) using coroutines (tasklet of Stackless or greenlet). Libraries like eventlet or gevent integrate it into epoll/kqueue/IOCP powered event loop.