Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: JVM internal socket bypass?

Reply
Thread Tools

Re: JVM internal socket bypass?

 
 
Sudsy
Guest
Posts: n/a
 
      07-12-2003
Don Brinn wrote:
> When two different threads in the same JVM communicate with each other
> via a socket-connection, what sort of shortcuts/bypasses will the JVM
> do?
>
> Will socket requests even reach the OS? Or is the JVM clever enough
> to bypass this and instead use some higher-level, more efficient
> method of intra-VM communication?
>
> Thanks,
> Don Brinn


It's not up to the JVM to perform shortcuts as it needn't know about
the lower-level implementation. If you want to provide intra-thread
communication then look at the PipedInputStream/PipedOutputStream
mechanism.

 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      07-12-2003
On Sat, 12 Jul 2003 03:07:44 -0400, Sudsy <>
wrote or quoted :

>If you want to provide intra-thread
>communication then look at the PipedInputStream/PipedOutputStream
>mechanism.


for sample code using pipes see http://mindprod.com/fileio.html

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
 
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
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 0 02-01-2009 07:37 AM
socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 1 01-27-2009 05:05 PM
Re: socket.unbind or socket.unlisten? - socket.error: (48,'Address already in use') Jean-Paul Calderone Python 0 01-27-2009 01:41 PM
Re: JVM internal socket bypass? EJP Java 2 07-16-2003 02:30 PM
Re: JVM internal socket bypass? Roedy Green Java 1 07-12-2003 03:58 AM



Advertisments