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
Explain about complier design(phases)
Can we instantiate interface in java?
What are strings in physics?
What are the characteristics of Final,Finally and Finalize keywords.
Can the garbage collection be forced by any means?
Is space a character in java?
What is ordered map in java?
According to java operator precedence, which operator is considered to be with highest precedence?
What is the Scope of Static Variable?
Can we have multiple public classes in a java source file?
What is intern method in java?
How do you define a singleton class?
What is the inheritance?
What is close method? How it's different from Finalize & Dispose?
What do you mean by buffering?