letiantian
letiantian

Reputation: 437

Why there is no limit to the number of File Descriptor in epoll, but select does have the limit

select, poll and epoll can help us to implement high performance server.

Why there is no limit to the number of File Descriptor in poll and epoll, but select does have the limit ?

Upvotes: 1

Views: 1318

Answers (1)

Caladain
Caladain

Reputation: 4934

Select has an artificial limit hard coded in the library to FD_SETSIZE, which is often 1024. http://www.kegel.com/c10k.html covers the c10k problem and goes over each method (select, poll, epoll, iocp, etc)

Upvotes: 1

Related Questions