4 ms·
Is there a similar or updated guide some place which includes non-blocking i/o?
by kqr2 14y ago
Is there a similar or updated guide some place which includes non-blocking i/o?
- krenoten 14y agoCheck out "The C10K Problem" (http://www.kegel.com/c10k.html http://www.kegel.com/c10k.html) for a high level discussion of some techniques for high performance servers. For basic info on Epoll: http://www.devshed.com/c/a/BrainDump/Linux-Files-and-the-Event-Poll-Interface/ http://www.devshed.com/c/a/BrainDump/Linux-Files-and-the-Eve... epoll socket tutorial: http://kovyrin.net/2006/04/13/epoll-asynchronous-network-programming/ http://kovyrin.net/2006/04/13/epoll-asynchronous-network-pro... Or kqueue if your OS supports it: http://wiki.netbsd.org/tutorials/kqueue_tutorial/ http://wiki.netbsd.org/tutorials/kqueue_tutorial/ Lower level details on level triggered vs edge triggered interrupts: http://en.wikipedia.org/wiki/Interrupt#Level-triggered http://en.wikipedia.org/wiki/Interrupt#Level-triggered Overview of the thundering herd problem: http://www.citi.umich.edu/projects/linux-scalability/reports/accept.html http://www.citi.umich.edu/projects/linux-scalability/reports...
- halayli 14y agoTake a look at lthread http://github.com/halayli/lthread http://github.com/halayli/lthread
- n0ndescript 14y agoThere is http://www.wangafu.net/~nickm/libevent-book/ http://www.wangafu.net/~nickm/libevent-book/ which is useful even if you are not using libevent (which most of the cool kids are)
- stefantalpalaru 14y agoSome of those cool kids should take a look at libev: http://software.schmorp.de/pkg/libev.html http://software.schmorp.de/pkg/libev.html
- simfoo 14y agoOr libuv: https://github.com/joyent/libuv https://github.com/joyent/libuv
- deleted 14y ago[deleted]