why the sleep method does not leave the lock and wait method
leave the lock
Answer Posted / balamurugan
Wait Method have parameters as MilliSecond after that
particular time over thread start execution.So Wait Method
Leave the Lock.
But in Sleep() have no any parameter so the thread have no
clue to leave the lock . that's y sleep method does not
leave the lock the programmer need to explicitly write
another method like notify() to execute.
Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is lambda expression in mvc?
Describe life cycle of thread?
What is war file in java?
What is a stream in programming?
How long can a lambda function run?
What is meant by annotation in java?
Describe the principles of oops.
Is eclipse a jdk?
Is it correct to say that using parentheses can only change?
What is entitymanager in java?
In java thread programming, which method is a must implementation for all threads?
Who developed rxjava?
Does ms edge support java?
What is cache in java?
Are the actual permissions for the application defined at run-time or compile-time? : java security