what is deadlock in threads?
with example
Answer Posted / ak
If an object A is holding an object X and trying to access
object Y and Object B is holding an object Y and trying to
access X, both the objects A,B want to release their
objects only after getting access to the target object in
that situation it is a dead lock
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is object-oriented programming?
What is valid keyword in java?
Can we override private methods?
What are "class access modifiers" in Java?
What are sets in java?
What are conditionals and its types?
What is concurrent hashmap and its features?
Explain the features of interfaces in java?
What is contract between hashcode and equal method?
Can we inherit inner class?
List types of storage classes in java?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What is the use of inner class?
Can a top level class be private or protected?
Does garbage collection occur in permanent generation space in jvm?