Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: Sockets for inter-process communication

Reply
Thread Tools

Re: Sockets for inter-process communication

 
 
Sudsy
Guest
Posts: n/a
 
      06-28-2003
Jeremy wrote:
> Is this terribly inefficient? What I mean is - using a network socket to
> exchange objects with another app or thread on the same machine. Is there a
> more efficient way to do this? Any good reading on inter-app communication
> (or inter-thread communication within the same VM)?
>
> Thanks,
> -Jeremy


Someone already mentioned using PipedInputStream/PipedOutputStream for
inter-thread communication. Jon Cruz also alluded to the fact that the
typical TCP/IP protocol stack is smart enough to know when the source
and destination are the same machine (even with different addresses)
and can "short-circuit" the processing so that packets never actually
get transmitted on the physical interfaces.
An additional wrinkle in the *NIX environment is named pipes, accessed
using AF_UNIX in the socket call. These are usually very efficient. Of
course they're also are limited to inter-process communication on the
same host.
Always cheaper to use kernel memory, don't you know...

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Future of Voice Communication @ BonaFideReviews Silverstrand Front Page News 0 09-27-2005 01:47 PM
PC communication on wireless network? Mervin Williams Wireless Networking 3 08-24-2004 06:32 PM
Re: Sockets for inter-process communication Frank D. Greco Java 1 06-30-2003 03:47 AM
Re: Sockets for inter-process communication Jon A. Cruz Java 0 06-28-2003 03:33 AM
Re: Sockets for inter-process communication Knute Johnson Java 0 06-27-2003 10:00 PM



Advertisments