does the sleep method of class thread causes the current thread to release de lock on an object??? for example, calling sleep, will cause the current thread to release the lock on an object and then another thread will be able to get a lock on that object???
posted 14 years ago
No, sleep() does not release any locks. However wait() does. See the API for more details.