Can we call the Thread.sleep in Synchyronozed block?
Answer Posted / veerendra
While the thread is sleeping in a synchronised block means,
you are locking a resource, there might be 'n' number of
contenders for this resources. If the thread goes to sleep
then other threads or processes contending for the resource
will be blocked infinitely.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Which is faster call by value or call by reference?
How can we break singleton in java?
Can we convert list to set in java?
What is nested interface?
What is pass by value?
How many java versions are there?
What is the relationship difference the canvas class and the graphics class?
What is join () in java?
What is arraylist e in java?
What is the difference between java applets and applications?
Why is it called boolean?
What is garbage collector?
What is java command?
What is the char data type?
How do you compare characters in java?