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

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ 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!

+ How to Follow the New Added Discussions at Your Mail Address?

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

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 2763

.

+ 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)

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

RSS

Latest Activity

ayesha joined + M.Tariq Malik's group
51 minutes ago
Whispering Soul replied to Whispering Soul's discussion Kabi kabi...
1 hour ago
+ ՏhehαrZααD + liked Biya's discussion Surah Yusuf 12:64
1 hour ago
+ ՏhehαrZααD + replied to Biya's discussion Surah Yusuf 12:64
1 hour ago
+ ՏhehαrZααD + liked Biya's discussion SURAH AZ-ZARIYAT 51:58
1 hour ago
+ ՏhehαrZααD + replied to Biya's discussion SURAH AZ-ZARIYAT 51:58
1 hour ago
+ ՏhehαrZααD + liked Biya's discussion Surah-Al-Mulk 67 : 1 . 2
1 hour ago
+ ՏhehαrZααD + replied to Biya's discussion Surah-Al-Mulk 67 : 1 . 2
1 hour ago
+ ՏhehαrZααD + replied to Biya's discussion Surat At- Tin / Ayat 4
1 hour ago
+ ՏhehαrZααD + replied to Biya's discussion Surah YUNUS / AYAT 38
1 hour ago
ZIDI MONDA updated their profile
2 hours ago
M Attiq updated their profile
2 hours ago
+ ! ! ! ! Noor E Kayenat replied to + ! ! ! ! Noor E Kayenat's discussion Please Raise Ur Hand !!
2 hours ago
+ ! ! ! ! Noor E Kayenat replied to + ! ! ! ! Noor E Kayenat's discussion Please Raise Ur Hand !!
2 hours ago
+ ! ! ! ! Noor E Kayenat replied to + ! ! ! ! Noor E Kayenat's discussion When you know the truth !!
2 hours ago
+ ! ! ! ! Noor E Kayenat replied to + ! ! ! ! Noor E Kayenat's discussion When you know the truth !!
2 hours ago
Biya liked + ! ! ! ! ! !blaire's blog post غار سجدہ
2 hours ago
+ Adeeena updated their profile
2 hours ago
Biya liked + !ѕιмρℓє ¢н's discussion choti choti khwahishein....
2 hours ago
Biya replied to Whispering Soul's discussion Kabi kabi...
2 hours ago

Today Top Members 

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

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