Re: Scalable tcp server
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Sun, 08 Jul 2007 17:18:04 -0700
On Jul 7, 11:01 pm, allthecoolkidshave...@xxxxxxxxx wrote:
One option:
Get rid of most if not all the threads. Rewrite it with a callback-
based model using libevent
(http://monkey.org/~provos/libevent/), which will use the highest
performance event polling mechanism a particular OS supports (kqueue
on BSDs (Including OS X), epoll on linux 2.6, /dev/poll on Solaris,
poll, and as a last resort, select).
That's a good idea. But you still need threads to block on disk I/O
and to handle extraordinary conditions like errors where the code may
need to fault in.
DS
.
- References:
- Scalable tcp server
- From: Henrik Goldman
- Re: Scalable tcp server
- From: allthecoolkidshaveone
- Scalable tcp server
- Prev by Date: Re: Scalable tcp server
- Next by Date: Re: exec function
- Previous by thread: Re: Scalable tcp server
- Next by thread: Re: Scalable tcp server
- Index(es):
Relevant Pages
|