Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You should never, ever, create one thread per socket. The choice is between select, polled IO, or events. Sadly, UNIX doesn't have a good unified asynchronous IO model, like OVERLAPPED and IOCP on NT.


> You should never, ever, create one thread per socket

Really? that's how MySQL works.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: