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

How does the java compiler work?

529


What is the difference between replace and replace all?

475


How many bytes is a string in java?

535


What is ternary operator in java?

595


Is there any difference between synchronized methods and synchronized statements?

586






How many static init can you have?

682


Does java initialize arrays to zero?

508


What are the two types of exceptions in java? Which are the differences between them?

515


What are java annotations?

646


Can static method access instance variables ?

598


What are keywords in java?

577


What is package private scope in java?

535


What do you understand by garbage collection in Java? Can it be forced to run?

554


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

1599


why not override thread to make a runnable? : Java thread

557