Consider 3 processes (P1, P2 and P3) that share 2 resources (R1 and R2). Assume that there are 1 instance of R1 and 2 instances of R2. Draw a resource allocation graph that shows a deadlock between the processes.

Respuesta :

Explanation:

Sure, here's a simple resource allocation graph that demonstrates a deadlock scenario between the processes P1, P2, and P3:

R1 (1)

/

P1 /

/

/

/

/

R2 (2) --- P2

\

\

\

\

\

\

\

P3

In this scenario:

- P1 holds R1 and requests R2.

- P2 holds R2 and requests R1.

- P3 requests both R1 and R2.

This creates a circular wait condition, leading to a deadlock, where none of the processes can proceed because they are all waiting for resources held by each other.

ACCESS MORE