real time example for deadlock,starvation,livelock
Answer Posted / prateek shrivastava
Dead lock generally occurs when 2 threads try to acquire
same shared resource. In this case each thread end up
waiting for other to release lock and deadlock occurs
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
What is a text string?
What is diamond operator in java?
Why a dead thread occurs?
Is java a pure object oriented language?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
What is application system?
What is stack example?
What is a boolean flag in java?
What is a local, member and a class variable?
What is reflexive association?
What are meta-annotations?
Explain the difference between intermediate and terminal operations in java8?
What is join () in java?
How are multiple inheritances done in Java?
What do you mean by constructor?