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 independent and dependent variables in research?
How to make a class or a bean serializable?
Can you override static method in java?
How do you sort a string in alphabetical order in java?
Can a class extend more than one class?
Program to print 1 1 2 1 2 3 1 2 3 4 like that
In Inheritance if we are implementing Multi level inheritance and all class having same name of variable and now i want to access each class variable and how it is possible?
How transient variable is different from volatile variable?
What is arraylist e in java?
What is args length in java?
System.out & System.in are final static data member of System class but we can change there reference through setOut() & setIn() method how...
How many decimal digits is 64 bit?