edited by
1,622 views
1 votes
1 votes

An operating system contains three resource classes. The number of resource units in these classes are $7, 7\ \text{and} \ 10$ respectively. The current resource allocation state is shown below: $$\begin{array}{|c|c|}\hline \textbf{Process} & \textbf{Allocated Resources} &  \textbf{Maximum Requirements} \\ & R_1\:\:\:\:\:\: R_2\:\:\:\: R_3 &  R_1\:\:\:\:\:\: R_2\:\:\:\: R_3   \\ \hline P_{1} & 2 \:\:\:\:\:\:\:\:\:  2 \:\:\:\:\:\:\:\: 3 &  3 \:\:\:\:\:\:\:\:\:  6 \:\:\:\:\:\:\:\: 8  \\  P_{2} & 2 \:\:\:\:\:\:\:\:\:  0 \:\:\:\:\:\:\:\: 3 &  4 \:\:\:\:\:\:\:\:\:  3 \:\:\:\:\:\:\:\: 3  \\ P_{3} & 1 \:\:\:\:\:\:\:\:\:  2 \:\:\:\:\:\:\:\: 4 &  3 \:\:\:\:\:\:\:\:\:  4 \:\:\:\:\:\:\:\: 4  \\ \hline \end{array}$$

  1. Is the current allocation state safe? Justify.
  2. If process $P_1$ now requests $(1,1,0)$ resources, then what will be the status of the new state?
edited by

1 Answer

0 votes
0 votes

(i) It is in Safe state.

(ii) It’ll go in Unsafe state.

Related questions

0 votes
0 votes
2 answers
2
go_editor asked Sep 20, 2018
406 views
Write a complete ANSI C code using recursion to calculate the $sum(s)$ of the digits of an integer number (i) consisting of maximum 5 digits. For example, (1) = if $i=123...
1 votes
1 votes
1 answer
3
go_editor asked Sep 20, 2018
443 views
Show that $\{1,A \bar{B}\}$ is functionality complete, i.e., any Boolean function with variables $A$ and $B$ can be expressed using these two primitives.
0 votes
0 votes
1 answer
4
go_editor asked Sep 20, 2018
719 views
Write the number $(-5)^{\frac{1}{2}}$ in single precision IEEE 754 floating point form.