Re: Five Reasons Why Synchronous Networking Is Bad
Re: Five Reasons Why Synchronous Networking Is Bad
- Subject: Re: Five Reasons Why Synchronous Networking Is Bad
- From: Joel Reymont <email@hidden>
- Date: Thu, 5 Mar 2009 19:44:20 +0000
On Mar 5, 2009, at 7:41 PM, Mark Pauley wrote:
You're getting to the point at which threading becomes beneficial
because you need concurrency to handle all of the incoming packets.
This has nothing to do with monitoring connections which CFSocket does
using select.
It won't help me a single bit to run multiple threads to monitor
connections since once thread can perfectly cope with that.
My point is that select has a very high overhead when you go past 1k
connections, perhaps below even. That's when you start using efficient
polling like epoll, kpoll, etc. Mac OSX has kevent/kqueue and I'm
surprised that CFSocket does not use it.
---
http://tinyco.de
Mac, C++, OCaml
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden