Computer Science, asked by saimas425, 4 months ago

A deadlock exists in the system if and only if the
wait-for graph contains a​

Answers

Answered by Jasleen0599
0

Cycle

A deadlock exists in the system if and only if the wait-for graph contains a​ cycle.

  • Deadlock exists if the wait-for graph contains a loop.
  • Graph-waiting algorithm It is a variation of the graph used for resource allocation. In this algorithm, the only vertices in the graph are processes. The system is said to be in a deadlock condition if the Wait-for Graph has a cycle.
  • There is no deadlock if there is no cycle in the resource allocation graph. There is stalemate if the graph has a cycle and each resource only has one instance.
  • cycles that use multiple copies of a resource•
  • Given multiple units of a resource, cycle is a need for a deadlock but is insufficient.
  •  A cycle is implied by a stalemate, i.e., if there is a deadlock, there must be a cycle •
  • The presence of a knot is a requirement that must exist.

#SPJ3

Answered by aryansuts01
0

Answer:

Cycle

If and only if the wait-for graph has a cycle, the system is said to be in a stalemate.

Explanation:

The machine is said to be in a standoff if and only if the wait-for graph contains a cycle. It is said that all of the cycle's transactions are deadlocked.

A deadlock occurs when two computer programmes that are using the same resources efficiently block each other from using it, which causes both programmes to stop working. One programme could only run at a time on the first computer operating systems.

When a group of processes is in a wait state, a condition that occurs since each function is awaiting a resources that is being held by another waiting process. As a result, all deadlocks entail competing demands for resources from more than one process.

One way for identifying a stalemate condition is wait-for-graph. Smaller datasets should be suited for this approach. Depending on the transactions and their lock on the resources, this technique creates a graph. Deadlock results from the creation of a closed-loop or cycle in the graph.

Deadlocks occur when multiple processes are impeded by the possession of a resource and the need for a resource that must be acquired by another process. When resources are never distributed, low priority operations suffer from starving, which results in an endless delay.

#SPJ2

Similar questions