Recent questions tagged resource-allocation

1 1 vote
3 3 answers
3.9k
3.9k views
A system contains three programs and each requires three tape units for its operation. The minimum number of tape units which the system must have such that deadlocks nev...
0 0 votes
3 3 answers
1.8k
1.8k views
A system has $3$ processes sharing $4$ resources. If each process needs a maximum of $2$ units then, deadlockCan never occurHas to occurMay occurNone of the options
0 0 votes
0 0 answers
1.0k
1.0k views
Write a program that detects if there is a deadlock in the system by using a resource allocation graph. Your program should read from a file the following inputs: the num...
0 0 votes
1 1 answer
932
932 views
Fig. 6-3 shows the concept of a resource graph. Do illegal graphs exist, that is, graphs that structurally violate the model we have used of resource usage? If so, give a...
58 58 votes
9 9 answers
23.8k
23.8k views
Consider the following snapshot of a system running $n$ concurrent processes. Process $i$ is holding $X_i$ instances of a resource $R$, $1 \leq i \leq n$. Assume that all...
0 0 votes
2 2 answers
1.7k
1.7k views
(c) 2Q. 13 Consider the following requests and grants of four processes in the system as given order.(i) $P_{1}$ requests 2 units of $R_{1}$(ii) $\mathrm{P}_{2}$ requests...
0 0 votes
1 1 answer
1.0k
1.0k views
A. X=40,Y=20B.X=50,Y=10C.X=30,Y=20D. X=20,Y=30Consider the following table with 4 processes,\begin{tabular}{|c|c|c|}\hline Process & \begin{tabular}{c}Maximum \\Demand\en...
3 3 votes
4 4 answers
2.0k
2.0k views
Consider the following resources allocation graph with four processes $P_{1}, P_{2}, P_{3}, P_{4}$ and three resources $R_{1}, R_{2}, R_{3}$. System has two instances of ...
1 1 vote
1 1 answer
1.4k
1.4k views
1 1 vote
1 answers 1 answer
1.2k
1.2k views
A system is having user processes $P_1, P_2, \dots , P_N$ each requiring $Q_N, Q_{N-1}, \dots , Q_1$ number of resource instances of resource $R$. The minimum number of r...
0 0 votes
1 answers 1 answer
4.5k
4.5k views
Consider a system which has $28$ instances of a resource $P$ such that $4+n$ processes share them,$4$ process request $5$ instances of $'P'.$ If $n$ process request $5$ i...
0 0 votes
1 1 answer
1.7k
1.7k views
Consider two processes P1 and P2, each needed 3 resources 1, 2 and 3 in a database. If each processes ask them in any order, then the number of ways possible in which sys...
0 0 votes
1 answers 1 answer
2.2k
2.2k views
A system has 28 instances of resource P such that 4+n processes share them, 4 process request 5 instances of P. If n processes request 5 instances of same resource what i...
2 2 votes
1 1 answer
3.3k
3.3k views
which of the following is true?a:resource preemption is allowed in deadlock can be avoided but cannot be preventedB: if the number of shared resources is greater than the...
0 0 votes
1 1 answer
1.0k
1.0k views
0 0 votes
1 1 answer
816
816 views
How to solve this problem?
0 0 votes
0 0 answers
995
995 views
I have a Small Doubt whenever in questions of resource allocation suppose we have two independent request R1 and R2 so nowand currently we are in safe state.Say I Fulfill...
4 4 votes
2 2 answers
1.4k
1.4k views
A system has 10 identical resources and N processes competing for them. Each process can request atmost 3 resources but by grouping of first 3 processes needs only 6 reso...
1 1 vote
1 1 answer
2.3k
2.3k views
A system has 10 identical resources and N processes competing for them. Each process can request atmost 3 resources but by grouping of first 3 processes needs only 6 reso...
0 0 votes
1 1 answer
731
731 views
https://gateoverflow.in/?qa=blob&qa_blobid=16406706223773445572someone plz help how to detect deadlock in this type of question??
2 2 votes
2 2 answers
1.6k
1.6k views
System with 100 process and single resource R with 100 instances. Each process needs a minimum of one instances to complete.Deadlock is possibleStarvation is possibleThra...
1 1 vote
2 2 answers
2.1k
2.1k views
Consider a system with five processes $P_0$ through $P_4$ and three resource types $A, B$ and $C$. Resource type $A$ has seven instances, resource type $B$ has two instan...
42 42 votes
7 answers 7 answers
24.1k
24.1k views
A system shares $9$ tape drives. The current allocation and maximum requirement of tape drives for that processes are shown below:$$\begin{array}{|c|c|} \hline \textbf{P...
2 2 votes
1 1 answer
730
730 views
i m calculating again n again but getting same ans.. what m i missing here pls varify once...
3 3 votes
2 answers 2 answers
4.4k
4.4k views
Consider a system with processes P0, P1,P2, . . . . P99, P100, each process requires maximum of 4 resources. System has allocated 2 resources to each process. The minimu...
2 2 votes
1 answers 1 answer
1.0k
1.0k views
A uniprocessor system has two resources of type A and B shared by four processes. There are $4$ units of each resource type available after allocation. Let “current” indi...
3 3 votes
1 answers 1 answer
2.2k
2.2k views
Consider a system with five processes $P0$ to $P4$ and three resources $R1$, $R2$ and $R3$, each having $10, \ 5, \ 7$ instances respectively. The system table at time $T...
3 3 votes
2 answers 2 answers
1.4k
1.4k views
Which of the following statements are not true?All unsafe states are deadlocksA deadlock state is unsafe stateA system is in safe state only if there exists a safe sequen...