15,537 views
26 votes
26 votes

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:

  1. Both starvation and deadlock can occur
  2. Starvation can occur but deadlock cannot occur
  3. Starvation cannot occur but deadlock can occur
  4. Neither starvation nor deadlock can occur

3 Answers

Best answer
39 votes
39 votes

Answer: (B)

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 properly yet. This will happen again when the process requests another resource. So, the process starves for proper utilisation of resources.

Deadlock will not occur as it is similar to a deadlock prevention scheme.

edited by
7 votes
7 votes

B) is correct.

Releasing all resources before making a request for another resource is a technique of deadlock prevention.So, deadlock cannot occur.However, we cannot say anything about starvation, it may occur or may not.

4 votes
4 votes
Option B is right option for it.

First it simple method by which deadlock can be prevented but sometimes process execution takes places on some resources and new request is required by it but still some resourses are available to use it.In that condition starvation can be happpen.
Answer:

Related questions

35 votes
35 votes
5 answers
3