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
I want to persist data of objects for later use. What’s the best approach to do so?
Write a program to reverse a number in java?
What is character in data type?
How do you download stubs from Remote place?
How define set in java?
Where are register variables stored?
Write a function for palindrome and factorial and explain?
Name container classes in java programming?
Can memory leak happen java?
Why parsing is done?
Is string an object?
Can we rethrow the same exception from catch handler?
When should I use a singleton?
What are kinds of processors?
What is backdrop?