3 ms·
Check 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
by krenoten 14y ago
Check 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