The value is a C10K problem , which is best suited for asynchronous I / O on Mac OS X (suppose you're using it on a Mac and iPhone / iPad)?
On Linux, our choice is epoll; on Windows, I / O completion ports.
The top priority is performance and scalability (thousands of connections).
UPDATE
OK Since Darwin is a BSD-like system, my general idea is to use kqueue. Is it correct? It would be nice to hear from someone who was experienced in this field.
thanks
source share