What is deadlock and how to avoid this?

Answers were Sorted based on User's Feedback



What is deadlock and how to avoid this?..

Answer / ravikiran(aptech mumbai)

deadlock is the uneven condition occured between two
synchronized methods calling each other on each others bodies.

we can avoid dead lock threw inter thread communication by
calling wait notify and notifyall methods of object class

Is This Answer Correct ?    3 Yes 1 No

What is deadlock and how to avoid this?..

Answer / priyavarzhni

Deadlock is avoided by synchronising the code.

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More Core Java Interview Questions

What is methods in java?

0 Answers  


which method is used to know the status of the Thread?

9 Answers   Honeywell,


Explain Connection Pooling?

3 Answers  


What is the tradeoff between using an unordered array versus an ordered array?

0 Answers  


What do you mean by append?

0 Answers  






What is a class component?

0 Answers  


What is a nested list?

0 Answers  


Explain about arraylist?

0 Answers  


What is stream api in java8?

0 Answers  


Why hashset is used in java?

0 Answers  


How many techniques can be employed to create a string object?

0 Answers  


there are some duplicate values in ArrayList, how U'll get that array with out duplicate?

4 Answers   CMC,


Categories