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 32 bit float?
What is thread?
IN java collections we have both interfaces and classes. instead of using interfaces why we can't use classes only like that why we can't use interfaces only. why we need two things interface and class.
What is predicate in java?
waht You know about thread programming?
Which is the best approach for creating thread ?
What is the purpose of void?
How do you sort an array in java?
Infinite loop using while ?
Why we used break and continue statement in java?
How to prevent a field from serialization ?
Can we override constructors in java?