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 constants and how to create constants in java?

0 Answers  


What are the difference between composition and inheritance in java?

0 Answers  


What does string mean in java?

0 Answers  


Is hashset sorted in java?

0 Answers  


What is the difference between post and put?

0 Answers  


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

0 Answers   Fidelity,


What is the purpose of garbage collection in java?

0 Answers  


What is the default size of arraylist in java?

0 Answers  


can rmi and corba based applications interact ?

0 Answers  


I Have a class abstract with one abstract method, so that method should override in the subclass, but i dont want to override, if i am not override what will happen? If compilation will occur then i dont want to give compilation error, then what we need to do??? See the sample program. public abstract class AbstractExample { public abstract void sampleMethod(); } public class AbstractExampleImple extends AbstractExample { }

2 Answers   Mphasis,


How do you test a method for an exception using junit?

0 Answers  


briefley expalin about the packages

3 Answers  


Categories