3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by canwilf
1

From the Javadocs:

Causes the currently executing thread to sleep (cease execution) for the specified number of milliseconds plus the specified number of nanoseconds. The thread does not lose ownership of any monitors.

Edited by ~s.o.s~: n/a

0

No. However, Thread.wait() does, until it is notified, at which point it regains the monitor if it is the chosen thread that is woken up.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.