Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Question on wait(timeout)?

909741Apr 22 2013 — edited Apr 23 2013
hi,

The wait(timeout) method will try to reacquire the lock once the timeout has expired, up to the timeout it will release the lock. I hope it is correct.

If it is so, what will happen if the another thread has holds the lock before the timeout expires, and keeps the lock after the timeout expires also,

then what state the wait timeout thread will go? Will it keeps on waiting for lock like other threads?

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2013
Added on Apr 22 2013
2 comments
315 views