Deadlock prevention

 Deadlock Prevention:

  • That the system never enters a deadlock state.
  • It provides a set of methods to make sure that at least one of the four necessary conditions for a deadlock is never satisfied.
  • Mutual Exclusion
  •  this condition is needed to be checked for non-sharable resources (e.g. Printer)
  • Hold and Wait
  •  It requires a process to request a resource and get allocated before execution or allow process to request resources when the process has none.
  • No preemption
  •  If a process that is holding some resources requests another resource that cannot be immediately allocated to it, then all resources currently being held are released
  • Circular Wait
  • Every process holds a resource needed by the next process. We can impose a total ordering of all resource types, and ask that each process requests resources in an increasing order of enumeration.Disadvantage is that it can lead to low device utilization and reduced system throughput.
0Comment

What to read next

Please Go through all these linksW3Schools – HTML Tutorial

DefinitionFiber optics is the technology used to transmit information as pulses of light through strands of fiber made of glass or plastic over long