Re: Simple(?) synchronized() block question
- From: Patricia Shanahan <pats@xxxxxxx>
- Date: Fri, 30 Jun 2006 02:21:19 GMT
noident@xxxxxxxxxxx wrote:
Thank you very much to those who replied.
Of course! wait() is the Object's method, not the Thread's. My java
textbook mentioned that but didn't stress it well enough so I missed
it.
Thanks again.
Note that even if the wait were somehow resolved for the thread rather
than "this", it could not tell which object to wait on. The thread can
be synchronized simultaneously on several different objects.
Patricia
.
- References:
- Simple(?) synchronized() block question
- From: noident
- Re: Simple(?) synchronized() block question
- From: noident
- Simple(?) synchronized() block question
- Prev by Date: Re: Simple(?) synchronized() block question
- Next by Date: Wanna play????
- Previous by thread: Re: Simple(?) synchronized() block question
- Next by thread: Re: Simple(?) synchronized() block question
- Index(es):