[829] in java-interest
Re: Non-blocking read on Socket?
daemon@ATHENA.MIT.EDU (Pat Niemeyer)
Fri Jul 21 14:42:39 1995
Date: Fri, 21 Jul 1995 12:20:28 -0500 (CDT)
From: Pat Niemeyer <pat@icon-stl.net>
To: Jonathan Payne <jpayne@starwave.com>
Cc: java-interest@java.Eng.Sun.COM
In-Reply-To: <9507192300.AA00852@flim.starwave.com>
On Wed, 19 Jul 1995, Jonathan Payne wrote:
> > Is there currently any way to do a non-blocking read on the FileInputStream
> > from Socket? Should available() work for the input stream from a socket?
> > (My code doesn't seem to).
>
> No.
>
> > Is it possible to do the read in another thread?
>
> Yes.
>
> > Won't the read just block all of the threads (or is this implemenation defined?)
>
> It is defined that blocking in read() in one thread will not block any
> or all of the others.
Alrighty then...
Thanks,
Pat
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com