Question
Tell something about deadlock and how can we prevent dead lock?

Answers

In an operating system, a deadlock is a situation which occurs when a process enters a waiting state because a resource requested by it is being held by another waiting process, which in turn is waiting for another resource. If a process is unable to change its state indefinitely because the resources requested by it are being used by other waiting process, then the system is said to be in a deadlock.

Mutual Exclusion: At least one resource must be non-shareable.[1] Only one process can use the resource at any given instant of time.
Hold and Wait or Resource Holding: A process is currently holding at least one resource and requesting additional resources which are being held by other processes.
No Preemption: The operating system must not de-allocate resources once they have been allocated; they must be released by the holding process voluntarily.
Circular Wait: A process must be waiting for a resource which is being held by another process, which in turn is waiting for the first process to release the resource. In general, there is a set of waiting processes, P = {P1, P2, ..., PN}, such that P1 is waiting for a resource held by P2, P2 is waiting for a resource held by P3 and so on till PN is waiting for a resource held by P1.[1][7]

Thus prevention of deadlock is possible by ensuring that at least one of the four conditions cannot hold.   Your Comment






Search
Can you Answer!!
  • Q Define the coefficient of correlation when in a positive amount?
  • Q The Houthis are members of a rebel group operating in which country?
  • Q Differentiate Mordant and Lake?
  • Q What is Marvin Harris' view about the main cause of gender inequality in non-industrialized societies?
  • Q How is the yolk sac formed? what is the function of the yolk sac?
  • Q Information that comes from an external source and fed into computer software is called ................
  • Q In May 1941, who parachuted into Scotland from Germany claiming to be on a peace mission?
  • Q Collaboration between dev and testing
  • Q Explain how to do finalization of accounts?
  • Q Can you talk about scientific management? State any three of its principles.
  • Q Explain labelling and linking issue in Jira?