classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Note on PushbackInputStream


From: John Keiser
Subject: Re: Note on PushbackInputStream
Date: 21 Aug 2001 12:03:42 -0400

On 21 Aug 2001 13:21:54 -0400, Stuart Ballard wrote:
> John Keiser wrote:
> 
> > That's some nice code.  But how could super.unread() ever get called if
> > read() is in its loop?  They're both synchronized on this.
> 
> AIUI, wait() causes all monitors to be temporarily released. So a call
> to unread() will go through as soon as read() hits the line that says
> wait().
> 
> But ICBVW...
> 

Verily, you speak the truth.  You have seen deep into the heart of my
fallacy and pierced it to the core.  Thanks :)

--John





reply via email to

[Prev in Thread] Current Thread [Next in Thread]