what is deadlock in threads?
with example

Answers were Sorted based on User's Feedback



what is deadlock in threads? with example..

Answer / moorthyks

Two or more thread waiting for each other is called deadlock

Is This Answer Correct ?    18 Yes 3 No

what is deadlock in threads? with example..

Answer / 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

More Core Java Interview Questions

What are other modifiers?

2 Answers   Wipro,


What are wrapped classes in java programming?

0 Answers  


What is the difference between overriding & overloading?

0 Answers  


Is empty set an element of empty set?

0 Answers  


What is Session reduplication and how its done?

0 Answers  






Why is serialization required?

0 Answers  


Why Over riding is Run Time Polymorphism?

3 Answers   Genpact,


can we access the super class method using subclass object?

4 Answers  


Can we overload run() method in java?

0 Answers  


What is the difference between compile-time polymorphism and runtime polymorphism?

0 Answers  


When is the garbage collection used in Java?

0 Answers   BirlaSoft,


Explain the importance of join() method in thread class?

0 Answers  


Categories