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 is the difference between an object-oriented programming language and object-based programming language?

0 Answers  


what is polymorphism?

4 Answers  


write java code to print second max number in the array

12 Answers   Huawei, IBAB,


Is main is a keyword?

0 Answers  


What is an exception? difference between Checked and Unchecked exception in Java

0 Answers   SkillGun Technologies,






What is a java string?

0 Answers  


what are the rules to use try catch finally?

1 Answers   Satyam, UJ,


What is the syntax and characteristics of a lambda expression?

0 Answers  


Why java is free from garbage values??

4 Answers  


What is use of set in java?

0 Answers  


Can we use a default constructor of a class even if an explicit constructor is defined?

0 Answers  


What is a map in java?

0 Answers  


Categories