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 the difference between error and an exception?
What is the mapping mechanism used by java to identify IDL language?
write java code to print second max number in the array
What is subsequence of a string?
What methods are used to get and set the text label displayed by a button object?
What is the difference between java and .Net?
What is Java Package and which package is imported by default?
Can a class extends itself in java?
What is class and its types?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
Explain about collection interface in java?
What is the smallest package in Java API?