Re: High-performance server: epoll or a thread pool?
- From: Chris Friesen <cbf123@xxxxxxxxxxxxx>
- Date: Thu, 29 Nov 2007 12:51:34 -0600
Arkadiy wrote:
Hi all,
I need to build a performance-critical TCP server, and trying to make
a decision of whether to use IO multiplexing (with epoll) or just
dispatch requests to one of worker threads (from the thread pool),
each worker doing synchronous IO and processing. We will probably
have a limited number of connections reused for multiple requests.
I suspect a hybrid approach would be best. Use one thread per available cpu core, with epoll to track readable sockets.
Chris
.
- References:
- High-performance server: epoll or a thread pool?
- From: Arkadiy
- High-performance server: epoll or a thread pool?
- Prev by Date: Re: killing a large lists of pids
- Next by Date: Re: Design of x-window system
- Previous by thread: Re: High-performance server: epoll or a thread pool?
- Next by thread: Re: High-performance server: epoll or a thread pool?
- Index(es):