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 |
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
WHAT IS THE MEANING OF ALL TYPE OF BUZZWORDS?
Why there is no call by reference in java?
what is bytecode? watz the difference between machine code and bytecode?
What is a get method?
What is interface and its use?
How to implement a multithreaded applet?
What is considered an anti pattern?
What is the difference between the program and the process?
What is the difference between math floor and math round?
What's the base class of all exception classes?
long d =10;int i =0;i=d; /// is this possible? If d is very long number (10 digits or some thing) then?