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


Please Help Members By Posting Answers For Below Questions

Is java platform independent?

563


What is json parser in java?

612


What is use of a abstract variable?

534


What is a byte array?

585


How to find the largest value from the given array.

522






What state does a thread enter when it terminates its processing in java programming?

573


I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in

1593


Can we have multiple catch block for a try block?

584


What is contract between hashcode and equal method?

565


Discuss different types of errors that generally occur while programming.

574


Can we synchronize static methods in java?

597


explain copyonwritearraylist and when do we use copyonwritearraylist?

537


Can you add null to a list java?

582


Can I import same package/class twice?

490


Define jre i.e. Java runtime environment?

572