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 |
What does arrays sort do in java?
Explain the importance of import keyword in java?
What is prefix of a string?
What is assembly language?
Can there be an abstract method without an abstract class?
define the terminology association.
How do you pass by reference?
what are Hostile Applets?
What is the difference between the final method and abstract method?
What is a dot notation?
Why is boolean important?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread