Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please explain BECAUSE I HAVE THE ANSWER BUT I DONT GET IT: Q1.A system has a to

ID: 3596646 • Letter: P

Question

Please explain BECAUSE I HAVE THE ANSWER BUT I DONT GET IT:

Q1.A system has a total of 8 resources of a particular type. There are 4 processes running with their maximum resources needs and current allocation of resources as shown below

Process                Max need                  Current allocation                                 

P1                                3                                     1

P2                                2                                     1

P3                                5                                     2

P4                                6                                     2

a)Specify all the safe sequence from the state shown above

b) If P4 were to request 1 resource, should the request be granted? (Yes or No)

If yes –then indicate a safe sequence from the resulting state:

If No –then indicate the sequence of steps that would lead to a deadlock

Explanation / Answer

process has 8 resourses and 6 alredy assigned(p1=1,p2=1,p3=2,p4=2) so remainng 2

a.

The safe sequences are:

  P1,P2,P3,P4

P1,P2,P4,P3

P1,P3,P2,P4

P1,P3,P4,P2

P2,P1,P3,P4

P2,P1,P4,P3

P2,P3,P1,P4

P2,P3,P4,P1

b.

YES   

The request can be granted because there are safe sequences existed.

P2,P1,P4,P3

P2,P1,P3,P4