• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Five Reasons Why Synchronous Networking Is Bad
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Five Reasons Why Synchronous Networking Is Bad
      • From: Mark Pauley <email@hidden>
References: 
 >Five Reasons Why Synchronous Networking Is Bad (From: Quinn <email@hidden>)
 >Re: Five Reasons Why Synchronous Networking Is Bad (From: Peter Sichel <email@hidden>)
 >Re: Five Reasons Why Synchronous Networking Is Bad (From: Quinn <email@hidden>)
 >Re: Five Reasons Why Synchronous Networking Is Bad (From: Joel Reymont <email@hidden>)
 >Re: Five Reasons Why Synchronous Networking Is Bad (From: Mark Pauley <email@hidden>)
 >Re: Five Reasons Why Synchronous Networking Is Bad (From: Joel Reymont <email@hidden>)
 >Re: Five Reasons Why Synchronous Networking Is Bad (From: Mark Pauley <email@hidden>)

  • Prev by Date: Re: Five Reasons Why Synchronous Networking Is Bad
  • Next by Date: Re: Five Reasons Why Synchronous Networking Is Bad
  • Previous by thread: Re: Five Reasons Why Synchronous Networking Is Bad
  • Next by thread: Re: Five Reasons Why Synchronous Networking Is Bad
  • Index(es):
    • Date
    • Thread