We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

Graded Discussion Board for the course 'Operating Systems will be open on thursday 26th feb, 2015 to 27th feb,2015

Dear Students,

Graded Discussion Board of CS 604 is announced now, and its due date is 26th Feb, 2015 to 27th Feb, 2015, be ready for that.

Topic is: "
Is it possible to have a deadlock condition with a single process?  Explain and justify your answer with reference to deadlock prevention method".

share your ideas friends!

+ Click Here To Join also Our facebook study Group.

..How to Join Subject Study Groups & Get Helping Material?..

See Your Saved Posts Timeline

Views: 2755


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

Replies to This Discussion

dear..... But i have seen another thing.. we have the condition given that

Explain and justify your answer with reference to deadlock prevention method"

So in this situation one process can not have a dead lock condition....

Can we include both condition yes or no in our answer.

I think we can not given both at same time.... because,then  how will you justify your answer??

jo kuch bi ho Answer is no because (with reference to deadlock prevention method)

Phir /No\ pe hi mamla done karin ?


Yes that it is possible for a single process to become deadlocked if it is waiting for an event that only it can cause

Yes it is off course possible but in very rare cases ...... if you agree its ok if not then also there is not a big issue you just justify your answer with good reasoning... 

yes, single process have deadlock but which prevention method should be used?

There are four necessary condition for deadlock.

  1. Mutual Exclusion. Resources are not sharable.
  2. Non-preemption. Once a resource is given to a process, it cannot be revoked until the process voluntarily gives it up.
  3. Hold/Wait. It is possible for a process that is holding resources to request more.
  4. Cycles. It is possible for there to be a cyclic pattern of requests.

It is important to understand that all four conditions are necessary for deadlock to occur. Thus we can prevent deadlock by removing any one of them.

It is not possible to have a deadlock involving only one single process. The deadlock involves a circular “hold-and-wait” condition between two or more processes, so “one” process cannot hold a resource, yet be waiting for another resource that it is holding. In addition, deadlock is not possible between two threads in a process, because it is the process that holds resources, not the thread that is, each thread has access to the resources held by the process.

ans :NO
because as we know that for deadlock must have follow one of the given condition.
1. mutual exclusion:here is only single process so that no case of nonsharable resource .
2. hold and wait: here is only single process so that no wait for another process to realease the requested resource.
3. no preemption: single process so that no need to taken force fully.
4.circular wait: in single process no contain the cycle.
so that single process never enter into the deadlock state

Of course, all of the above can be true if the single process has multiple threads of execution. Those threads can be deadlocked just like processes

ma ny lecture suna tha us ma sir ny bataeya tha ke single prcess ma deadlock  a skta ha. but mjy  prevention ka method nai pata


© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service