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 are the legal parameters?
How do you check if a number is a perfect square?
Difference between concurrent hashmap and hashtable and collections
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
What is immutable state?
Can private members of a base class are inheritable justify?
How to create a base64 decoder in java8?
What is ternary operator in java?
What is the difference between == and === javascript?
Why are pointers not secure?
what is thread? What are the high-level thread states? : Java thread
What is a method vs function?
What is Classloader in Java?
What is use of functional interface in java 8? Explain
Why Java doesn’t support multiple inheritance?