What is deadlock and how to avoid this?
Answers were Sorted based on User's Feedback
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 |
Answer / priyavarzhni
Deadlock is avoided by synchronising the code.
Is This Answer Correct ? | 0 Yes | 5 No |
1) There are 10 different threads in runnable state. Each having priority 1 to 10. How does the CPU schedules or executes these threads?
Is ResultSet class?
5 Answers Bally Technologies, TCS,
Does java map allow duplicates?
What causes memory leaks in java?
how to create an applet
Does substring start with 0?
What is the best definition for data?
What is the difference(or similarity if there are some) between object and a variable?
What is natural ordering in java?
What is string made of?
What is the advantage of OOP in java?
what is struts-config-xml?and its use?