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 is methods in java?
which method is used to know the status of the Thread?
Explain Connection Pooling?
What is the tradeoff between using an unordered array versus an ordered array?
What do you mean by append?
What is a class component?
What is a nested list?
Explain about arraylist?
What is stream api in java8?
Why hashset is used in java?
How many techniques can be employed to create a string object?
there are some duplicate values in ArrayList, how U'll get that array with out duplicate?