We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>
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?..
.+ 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?)
dear..... But i have seen another thing.. we have the condition given that
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.
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.
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