InterviewSolution
Saved Bookmarks
| 1. |
What is a deadlock in Operating Systems? What are the situations for the deadlock to happen? |
|
Answer» DEADLOCK REFERS to the situation that happens in the operating system where each process will enter into the waiting state for obtaining the resource which has been ASSIGNED to some other process. Consider a real-time example of traffic that is going only in a single direction. Here, we can consider the bridge as a resource. If one car backs up, the deadlock situation will be RESOLVED easily. Multiple cars may have to be backed up on deadlock OCCURRENCE. So it might lead to starvation. The process will be considered to be in a deadlock when the following conditions get satisfied simultaneously:
|
|