Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Resource Allocation
Na462
asked
in
Operating System
Mar 26, 2018
edited
Mar 30, 2018
by
Sukanya Das
504
views
0
votes
0
votes
I have a Small Doubt whenever in questions of resource allocation suppose we have two independent request R1 and R2 so now
and currently we are in safe state.Say I Fulfilled the request $R1$ so now when i will fulfill for $R2$ will i use the original table before processing $R1$ or the tables after $R1$(Table refer to allocation,Max and Need ).
I guess the table after allocation rt but still not confirmed ?
operating-system
resource-allocation
Na462
asked
in
Operating System
Mar 26, 2018
edited
Mar 30, 2018
by
Sukanya Das
by
Na462
504
views
answer
comment
Follow
share this
share
4 Comments
by
Akhilesh Singla
commented
Mar 26, 2018
reply
Follow
share this
Since you have fulfilled R1's request, its resources will be freed and added to the available resources table. Now for R2, we take required resources from the available resources table. I hope you get it.
1
1
by
Devshree Dubey
commented
Mar 26, 2018
reply
Follow
share this
@Akhilesh Singla,In a way the table after R1. Isn't it?
0
0
by
Akhilesh Singla
commented
Mar 26, 2018
reply
Follow
share this
Yes, the available resources table after R1.
(Writing the concept below for my own revision)
Allocation Table: Number of instances of different resources allocated to each process.
Max Table: Maximum number of instances of different resources that could be required by all processes.
Need Table: (Max Table - Allocated Table). Created to check if the current resource allocation state would be safe or not in the worst scenario when every process requires all of its Max Table resources.
Available Resources Table is not really a table but a row corresponding to number of instances of each resource currently free to allocate. A process, the one that can satisfy its need from available resources, takes the resources and after its completion it frees up the resources it took from available and the ones it had before. Thus Available Resources Table now has more number of instances of resources than before. This process is repeated until the state is found out to be safe or unsafe.
2
2
by
Rehan Kumar 1
commented
Aug 10, 2018
reply
Follow
share this
After allocating to R1 if the system is in again safe state then you can use the new (allocatina,max,need )table for R2 but if after allocating R1 if it is going to be in unsafe state then you have to use initial (allocating,max,need )table for R2 .
0
0
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
0
Answers
← Previous
Next →
← Previous in category
Next in category →
Related questions
0
votes
0
votes
2
answers
1
Jyoti Kumari97
asked
in
Operating System
Jan 14, 2019
580
views
MadeEasy Workbook: Operating System - Resource Allocation
Jyoti Kumari97
asked
in
Operating System
Jan 14, 2019
by
Jyoti Kumari97
580
views
operating-system
resource-allocation
made-easy-booklet
0
votes
0
votes
1
answer
2
Jyoti Kumari97
asked
in
Operating System
Jan 14, 2019
465
views
MadeEasy Workbook: Operating System - Resource Allocation
A. X=40,Y=20 B.X=50,Y=10 C.X=30,Y=20 D. X=20,Y=30
Jyoti Kumari97
asked
in
Operating System
Jan 14, 2019
by
Jyoti Kumari97
465
views
operating-system
resource-allocation
made-easy-booklet
0
votes
0
votes
1
answer
3
Lakshman Patel RJIT
asked
in
Operating System
Dec 22, 2018
2,165
views
MadeEasy Test Series: Operating System - Resource Allocation
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$ instances of same resources what is the maximum value of $n$ such that system is in safe state______
Lakshman Patel RJIT
asked
in
Operating System
Dec 22, 2018
by
Lakshman Patel RJIT
2.2k
views
made-easy-test-series
operating-system
resource-allocation
0
votes
0
votes
1
answer
4
Gupta731
asked
in
Operating System
Nov 27, 2018
826
views
MadeEasy Test Series: Operating System - Resource Allocation
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 system is guaranteed to be deadlock-free ... Similar to https://gateoverflow.in/220031/deadlock. It seems many answers are possible and no proper explanation is present.
Gupta731
asked
in
Operating System
Nov 27, 2018
by
Gupta731
826
views
made-easy-test-series
operating-system
resource-allocation
Subscribe to GATE CSE 2023 Test Series
Subscribe to GO Classes for GATE CSE 2023
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
DRDO Previous Year Papers
From Rank 4200 to 64: My Journey to Success in GATE CSE Exam
What are the key things to focus on during the final 10-15 days before the GATE exam to improve performance?
All India GO Classes Mock test
NTA UGC NET JRF December 2022 Apply Online Form 2023
Subjects
All categories
General Aptitude
(2.5k)
Engineering Mathematics
(9.3k)
Digital Logic
(3.3k)
Programming and DS
(5.8k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.6k)
Non GATE
(1.3k)
Others
(2.4k)
Admissions
(649)
Exam Queries
(842)
Tier 1 Placement Questions
(17)
Job Queries
(74)
Projects
(9)
Unknown Category
(853)
Recent Blog Comments
@amit166 can you share the reference of the...
Twist at every point Man
Diagonalization of a MatrixIf there is an...
"i applied to amazon for 6 times,flipkart 2...
The Memes were inserted perfectly😁😁
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy