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

Can a class be declared as protected?

0 Answers  


What is null object in java?

0 Answers  


What is methods in java?

0 Answers  


Why are the objects immutable in java?

0 Answers  


What are white spaces in java?

0 Answers  






To obtain design information about an object, which class in used?

1 Answers  


Difference between object and reference?

0 Answers  


What is a nested list?

0 Answers  


How Applets & Servlets will communicate with each other?

2 Answers  


What methodology can be employed to locate substrings inside a string?

0 Answers  


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

0 Answers  


What are data structures in java?

0 Answers  


Categories