Skip to content

CS604 - Operating Systems

2 Topics 70 Posts
  • McQ Solved for Mid Tearm and Final Term

    Pinned
    9
    0 Votes
    9 Posts
    13k Views
    cyberianC
    @moaaz said in McQ Solved for Mid Tearm and Final Term: The condition in which a set {P0, P1… Pn} of waiting processes must exist such that P0 is waiting for a resource that is held by P1, P1 is waiting for a resource that is held by P2, and so on, Pn-1 is waiting for a resource held by Pn, and Pn is waiting for a resource held by P0. This condition is known as ______________. ►Mutual exclusion ►Hold and wait ►No preemption ►Circular wait (Page 131) The condition described is known as a “deadlock.” In the context of computer science and operating systems, a deadlock occurs when a set of processes are each waiting for a resource that another process in the set holds, creating a cycle of dependencies. Specifically, in the scenario you described: Process ( p_0 ) is waiting for a resource held by ( p_1 ), Process ( p_1 ) is waiting for a resource held by ( p_2 ), and so on, until Process ( p_n ) is waiting for a resource held by ( p_0 ). This creates a circular wait, which is one of the necessary conditions for a deadlock to occur. In a deadlock situation, none of the processes can proceed because each is waiting for a resource held by another process in the cycle.
  • 0 Votes
    2 Posts
    716 Views
    Ch. RobikaC
    idea solution plz
  • 0 Votes
    3 Posts
    948 Views
    zareenZ
    @zareen said in CS604 Assignment 3 Solution and Discussion: Question No 02 12 Marks Suppose a computer lab comprises of two printers, three scanners, and four ROM writers. There are three programs currently running on some computer. Assume program P1 is currently allocated a printer and two ROM writers and it is waiting for a scanner. Program P2 is allocated a scanner and it is waiting for a printer. Program P3 is allocated two ROM writers, a scanner, and a printer. Draw the corresponding resource allocation graph for these three programs. Also specify if the system is in a deadlocked state or not? [image: fEvrDBH.png] The system is not in deadlock state as it is clear from the above graph it is multi instance and circular weight.
Reputation Earning
How to Build a $1,000/Month World CUP LIVE Matches Live Cricket Streaming
Ads
File Sharing
Stats

0

Online

3.0k

Users

2.8k

Topics

8.5k

Posts
Popular Tags
Online User
| |