Question

Assume in a system, there are:

- 3 processes P1 to P3;

- 3 resource types: A(9 instances), B(5 instances), and C(5 instances).
Below is a snapshot at time T:

Allocation Max Pl P2 P3

1) Show that the system is in a safe state at time T.

2) Can request for (A: 2, B: 0, C: 0) by P1 be granted? Explain your answer.

Thank you so much, and it would be much better if it is well written and explained.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Date Page Neld 머 006-2:0 the NWO Avau oleks 0 3+3a60+4:414 1 2 CAMASSMAte Date Pa d unat bath the C.,Pi p1 and As, (4 42)z (441 Pl) And (G,0,0 (4i41 ot P2)

Add a comment
Know the answer?
Add Answer to:
Assume in a system, there are: - 3 processes P1 to P3; - 3 resource types:...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please give an explanation for the answers as well. 1. A system has three processes (P1,...

    Please give an explanation for the answers as well. 1. A system has three processes (P1, P2, and P3) and three resources (R1, R2, and R3). There is one instance of RI, two instances of R2, and three instances of R3. PI holds RI and one instance of R3 and is requesting one instance from R2. P2 holds one instance of R3 and is requesting RI and one instance from R2. P3 holds two instances of R2 and one instance...

  • In a computer system five processes are attempting to proceed with three resource types. The total...

    In a computer system five processes are attempting to proceed with three resource types. The total units of system resources are: (8,9,7). The maximum demands for every process are: P1(3,1,1), P2(3,3,2), P3(5,3,2), P4(5,1,2), P5(8,4,3). The current allocation is: P1 (0,1,1), P2 (2,1,1), P3 (3,1,2), P4 (1,1,1), and P5 (2,3,2). Is this state a safe state? Explain

  • In a system consisting of four processes and five resource types, the current allocation and maximum...

    In a system consisting of four processes and five resource types, the current allocation and maximum needs are as follows Process PO P1 P2 P3 Allocation 10211 20110 11010 Maximum 11213 22210 21310 11221 Available 00x12 What is the smallest value of 'x' that can keep the system in a safe state? Once you find the 'x value, find a safe execution order using the Safety Algorithm we discussed in the lecture. Include a step-by-step walk-through of the Safety Algorithm

  • Answer the following question: Allocation Available A B C D 3 3 2 1 Ро P1...

    Answer the following question: Allocation Available A B C D 3 3 2 1 Ро P1 A B C D 2001 3121 2103 1312 1 432 Max ABCD 4212 5252 2316 1424 36 65 P2 P3 P4 The snapshot of a system 1) Illustrate that the system is in a safe state by demonstrating an order in which the processes may complete. (Format: use process number only, e.g. 01234) 2) If a request from process P1 arrives for (1,1,0,0), can...

  • Consider a system in which four processes (A,B,C,D) are attemptign to access four types of resource...

    Consider a system in which four processes (A,B,C,D) are attemptign to access four types of resource (1,2,3,4). There are two instances of each type of resource , and the current allocation is <1001> for A , <0101> for B , <1000> for C , and <0010> for D. The Max Need for each process is <2002> for A , <0202> for B , <1100> for C , and <1010> for D. Is this system state safe? If so give an...

  • A system has five processes P1 through P5 and four resource types R1 through R4. There...

    A system has five processes P1 through P5 and four resource types R1 through R4. There are 2 units of each resource type. Given that: P1 holds 1 unit of R1 and requests 1 unit of R4 P2 holds 1 unit of R3 and requests 1 unit of R2 P3 holds one unit of R2 and requests 1 unit of R3 P4 requests 1 unit of R4 P5 holds one unit of R3 and 1 unit of R2, and requests...

  • Consider the following snapshot of a system: Process РО P1 P2 P3 P4 Allocation A B...

    Consider the following snapshot of a system: Process РО P1 P2 P3 P4 Allocation A B C D 2013 2 2 1 0 3 1 2 1 0 4 1 0 4 2 1 2 Max A B C D 5 1 1 6 3 2 1 1 3 2 2 1 4 6 1 2 5 3 2 5 Using the banker's algorithm, determine whether or not each of the following states is unsafe. If the state is safe,...

  • In order to prevent deadlocks, let a system adopt the policy of forcing processes to request...

    In order to prevent deadlocks, let a system adopt the policy of forcing processes to request resources in ascending order of request type rank. In particular, when a process is requesting a resource of a certain type, the process cannot be holding other higher ranked resources. Consider four resource types with the following profile in this system: Resource Type Rank Number of Instances RT1 4 2 RT2 7 4 RT3 8 3 RT4 10 2 Let the following sequence of...

  • Consider the following snapshot of a system:   Allocation Max Available ABCD ABCD ABCD P0 1121 2233...

    Consider the following snapshot of a system:   Allocation Max Available ABCD ABCD ABCD P0 1121 2233 2212 P1 2122 5445 P2 3010 3121 P3 1001 2311 P4 2000 3221 Answer the following questions using the banker`s algorithm: a) Illustrate that the system is in a safe state by demonstrating an order in which the processes may complete. Give the Available matrix after completion of each process.

  • Part B (10) Deadlock Avoidance Consider the following maximum-claim reusable resource system with four processes and...

    Part B (10) Deadlock Avoidance Consider the following maximum-claim reusable resource system with four processes and three resource types. The maximum claim matrix is given by C [4 3 5 11 1 41 1 4 6 13 1 6] where Cij denote maximum claim of process i for resourcej. The total units of each resource type are given by the vector (5, 8, 15). The current allocation of resources is given by the matrix To 1 4] 2 0 1...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT