Rachel Glenn wrote:I know that when a thread calls wait(object), it will release the lock on object until it is notified.
Why is it when a thread goes to sleep, it doesn't release its' locks?
Thread.sleep(n) is a static method, and it is not called on an object, so it does not have lock or monitor to release.