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
How many types of design patterns are there?
Why bytecode is called bytecode?
What is a vararg?
What is the static field modifier?
How to make object serializable in java?
What is polymorphism and what are the types of it?
Can we execute a program without main() method?
What are different types of references?
List some important characteristics on jre
Explain 5 features introduced in jdk 1.7?
What is a Transient Object?
What do you understand by the bean persistent property?
When parseint method can be used?
What do you mean by platform independence? What is an interface?
How to display all the prime numbers between 1 and 100