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 |
how can i take the inputs from users in java program?
What is a default method?
How many return statement are allowed in a function?
make a method which any number and any type of argument and print sum of that arguments.....
Write java code to print "Hello how are you" Thread1 should have "Hello" Thread2 should have "how are you" both the threads should start at the same time
How many bytes is a character?
What is nextline method in java?
What is the SimpleTimeZone class?
How do you implement polymorphism in our day to day life?
Can a private method be declared as static?
Can a constructor have different name than a class name in java?
What is a compilation unit?