Deadlock prevention Vs Deadlock Avoidance in Operating system

Deadlock prevention Vs Deadlock Avoidance Deadlock prevention  in Operating system is more preventive and conservative.

Deadlock Prevention:

We take care of eliminating any of deadlock causing condition:
1. Circluar wait:
Processes form cycle of waiting relationship.

2. Hold and wait:
Processes hold up resources which they have and w8 on resources they want.

3. No Preemption:
Once, a processes is in execution it is not preempted.

4. Mutual Exclusion:
When a process is executing on a variable no other process can access that variable.

Now for deadlock prevention what we do is don’t let our system to do anyone of this.

 You may like to read : NP Problem Stepwise

Deadlock Avoidance:

In this we look every single resource request and decide whether to allow that request.


Now take an example of protection from viral through water

In scenario like deadlock prevention, we would not let one to drink water.

In scenario of deadlock avoidance we would first filter out water

So in clear cut words deadlock prevention is more preventive and conservative. Conservative in the way that, it would decrease the power of the system by not allowing mutual exclusion., etc

Incoming search terms:

  • deadlock prevention and avoidance
  • prevention and avoidance of deadlock
  • compare and contrast deadlock prevention and deadlock avoidance
  • deadlock prevention vs avoidance
  • deadlock prevention vs deadlock avoidance
  • diferences between deadlock avoidance between deadlock prevention
  • differance between deadlock avoidance and deadlock prevention
  • difference between deadlock prevention and avoidance
  • difference between deadlock prevention and deadlock avoidance

You can also write for PCSkull Here
You can share your experience Here

If you have enjoyed this post, feel free to share it.
You can connect with PCSkull on Facebook and Twitter
You can also subscribe to PCSkull for instant updates by entering your email.

Rahul S. Purohit, enrolled in 1st year M.Tech(CSE) at IIT Kanpur. He loves programming and system oriented subjects...


4 Responses to “Deadlock prevention Vs Deadlock Avoidance in Operating system”

  1. Derwick

    Jan 12. 2014

    You really make it appear so easy along wit your presentation but I
    to find this matter to be really one thing which I feel I’d
    by no means understand. It kind of feels too complicated and vvery large
    for me. I am taiing a look ahead for your subsequent
    post, I’ll try to get the hold of it!

  2. Madhav Purohit

    Jan 12. 2014

    @Derwick: I am happy that this article is being useful to someone. Thanks for your feedback

  3. Mit Joshi

    Jan 12. 2014

    Very nice article, exactly what I was looking for.

  4. Ram M.

    Jan 29. 2014

    Keep on working, great job!


Get every new post delivered to your Inbox

Join other followers

Read more:
9 things to learn from carom
Life is your, because you know how to pocket the Byte !!

Why People Want To Jailbreak How To Jailbreak iPhone Full Guide
Why People Want To Jailbreak? How To Jailbreak iPhone?: Full Guide