edited by
2,958 views
2 votes
2 votes

A system contains $10$ units of resource of same type. The resource requirement and current allocation of these resources for three processes $\text{P, Q}$ and $\text{R}$ are as follows $:$

$\begin{array}{|l|l|l|l|}\hline &  \text{P} & \text{Q} & \text{R} \\\hline \text{Maximum requirement} & \text{8} & \text{7} & \text{5} \\\hline \text{Current allocation} & \text{4} & \text{1} & \text{3} \\\hline\end{array}$

Now, consider the following resource requests:

  1. $\text{P}$ makes a request for $2$ resource units
  2. $\text{Q}$ makes request for $2$ resource units
  3. $\text{R}$ makes a request for $2$ resource units

For a safe state, which of the following options must be satisfied?

  1. Only request $\text{i}$
  2. Only request $\text{ii}$
  3. Only request $\text{iii}$
  4. Request $\text{i}$ and $\text{ii}$
edited by

1 Answer

2 votes
2 votes
Ans is C   

            Max          allocated             need              available 10-8=2

 

P       8                          4                         4

 

Q       7                         1                          6

 

R       5                         3                          2

only request of R  (of  2 resources )must  be satisfied so that it can be completed and release all 5 resources which in turn will ensure the execution of  P and then Q i.e safe state.
Answer:

Related questions

2 votes
2 votes
1 answer
1
go_editor asked Jul 24, 2016
1,216 views
Match the following for Windows Operating System $:$$\begin{array}{} \text{(a)} & \text{Hardware} & \text{(i)} & \text{Starting all processes, emulation of different} \\...
1 votes
1 votes
1 answer
2
go_editor asked Jul 24, 2016
1,294 views
The portion of Windows 2000 operating system which is not portable isprocessor managementuser interfacedevice managementvirtual memory management
2 votes
2 votes
1 answer
4
go_editor asked Jul 24, 2016
5,105 views
Consider the following set of processes with the length of CPU burst time in milliseconds (ms) $:$$\begin{array}{|l|l|l|l|l|l|l|} \hline \textbf{Process} & \text{A} & \t...