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

1) There are 10 different threads in runnable state. Each having priority 1 to 10. How does the CPU schedules or executes these threads?

2 Answers   RBS,


Is ResultSet class?

5 Answers   Bally Technologies, TCS,


Does java map allow duplicates?

0 Answers  


What causes memory leaks in java?

0 Answers  


how to create an applet

2 Answers  






Does substring start with 0?

0 Answers  


What is the best definition for data?

0 Answers  


What is the difference(or similarity if there are some) between object and a variable?

4 Answers   ME,


What is natural ordering in java?

0 Answers  


What is string made of?

0 Answers  


What is the advantage of OOP in java?

0 Answers  


what is struts-config-xml?and its use?

3 Answers  


Categories