COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

OPERATING SYSTEMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
An example of a potential deadlock situation is
A
a one way bridge
B
a two way bridge
C
a single lane bridge
D
a one way train line
Explanation: 

Detailed explanation-1: -Traffic gridlock is an everyday example of a deadlock situation.

Detailed explanation-2: -Two cars crossing a single-lane bridge from opposite directions. the ladder. Two trains traveling toward each other on the same track. 8.2 Suppose that a system is in an unsafe state.

Detailed explanation-3: -Deadlock is a situation where two or more processes are waiting for each other. For example, let us assume, we have two processes P1 and P2. Now, process P1 is holding the resource R1 and is waiting for the resource R2. At the same time, the process P2 is having the resource R2 and is waiting for the resource R1.

Detailed explanation-4: -A deadlock can be of two types: A potential deadlock or an actual deadlock. A potential deadlock does not necessarily occur in a given run, but can occur in any execution of the program depending on the scheduling of threads and the timing of lock requests by the threads.

There is 1 question to complete.