InterviewSolution
Saved Bookmarks
| 1. |
How can we detect and avoid deadlock in Java? |
|
Answer» A deadlock can appear almost when the processes share the RESOURCES. To detect the deadlock, the wait-for graph should be maintained, and the system invokes an algorithm periodically that searches for CYCLES in the wait-for graph. How to avoid deadlock:
|
|