GATE - 2008 | OS | An operating system implements a policy that requires a process to

GATE - 2008 | OS | An operating system implements a policy that requires a process to
Posted on 15-02-2022

GATE - 2008 [Operating System]

Question:

An operating system implements a policy that requires a process to release all resources before making a request for another resource. Select the TRUE statement from the following:

A

Both starvation and deadlock can occur

B

Starvation can occur but deadlock cannot occur

C

Starvation cannot occur but deadlock can occur

D

Neither starvation nor deadlock can occur

   

Solution:

Option (B) is Correct.

Starvation can occur as each time a process requests a resource it has to release all its resources.


Now, maybe the process has not used the resources it released yet. This may happen again when the process requests another resource.


So, the process starved for proper utilization of resources.
Deadlock will not occur as it is one of the deadlock prevention schemes.

 

 

Thank You