• 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: OTEnterNotifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OTEnterNotifier


  • Subject: Re: OTEnterNotifier
  • From: Quinn <email@hidden>
  • Date: Wed, 22 Mar 2006 13:55:36 +0000

At 4:05 -0800 22/3/06, Shaun Wexler wrote:
Regarding UNIX domain sockets, how efficient are they, say, compared to mach ports, or even shared memory with semaphores? I'm strongly considering adopting them for inter-process communications, since I can abstract the local vs remote host case with CFSocket. I was also wondering how efficient these domain sockets were at kernel crossings, vs a custom UserClient?

I haven't profiled this stuff, so I'm basically guessing here...

UNIX domain sockets are probably not the most efficient IPC mechanism. Because they follow the sockets API model, they necessarily involve a copy. For large chunks of data, that's going to slow you down. OTOH, on the latency front, I doubt they're significantly worse than other IPC mechanisms.

What sort of data are we talking about here? Unless you're trucking around multi-megabyte buffers, efficiency isn't a big concern.

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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


References: 
 >RE: OTEnterNotifier (From: "Tim Dorcey" <email@hidden>)
 >RE: OTEnterNotifier (From: Quinn <email@hidden>)
 >Re: OTEnterNotifier (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: OTEnterNotifier
  • Next by Date: Re: Network Utility
  • Previous by thread: Re: OTEnterNotifier
  • Next by thread: Active network ports
  • Index(es):
    • Date
    • Thread