+ Link For Assignments, GDBs & Online Quizzes Solution |
+ Link For Past Papers, Solved MCQs, Short Notes & More |
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!
Tags:
+ 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?) + Click Here To Join (Our facebook study Group)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)
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.
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
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com Page with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post