On Wed, 23 Sep 1998, Alexander V. Konstantinou wrote:

> [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote on Wed, Sep 23, 1998 at 09:29:19AM -
> 0400: 
> > Are you saying that if my application has 5 threads running, and
> > one of them blocks on a blocking method (i.e., BufferedReader.readLine()
> > on a client socket) then the 4 other threads are blocking (not running) 
> > also during this time??
> 
> The answer depends on the operating system used.  If all threads have the
> same priority, then a call to a blocking console I/O operation will block
> all other peer threads on Solaris, but will not on Windows.  This is an
> area where the "write once, run anywhere" statement fails.  The solution
> is to execute threads that perform console I/O with a lower priority.
> 

A call made by who? one of the threads? or by main? 


Thanks,

Mark

Reply via email to