0
0
Operating Systemsknowledge~10 mins

Resource allocation graph in Operating Systems - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the sentence to define a resource allocation graph.

Operating Systems
A resource allocation graph is a directed graph that represents the allocation of [1] to processes.
Drag options to blanks, or click blank then click option'
Anetworks
Bfiles
Cresources
Dusers
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing resources with users or files.
Thinking the graph shows network connections.
2fill in blank
medium

Complete the sentence to explain the meaning of edges in a resource allocation graph.

Operating Systems
An edge from a process to a resource means the process is [1] the resource.
Drag options to blanks, or click blank then click option'
Areleasing
Bowning
Cignoring
Drequesting
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking the edge means the process owns the resource.
Confusing request edges with allocation edges.
3fill in blank
hard

Fix the error in the description of allocation edges in a resource allocation graph.

Operating Systems
An edge from a resource to a process means the resource is [1] to the process.
Drag options to blanks, or click blank then click option'
Aallocated
Brequested
Cdenied
Dreleased
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing allocation edges with request edges.
Using 'requested' instead of 'allocated' for this edge.
4fill in blank
hard

Fill both blanks to complete the condition for a deadlock in a resource allocation graph.

Operating Systems
A deadlock exists if there is a [1] in the graph and each resource node in the cycle has exactly [2] instance.
Drag options to blanks, or click blank then click option'
Apath
Bcycle
Cloop
Dbranch
Eone
Ftwo
Gzero
Hmany
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking any cycle causes deadlock regardless of resource instances.
Confusing 'path' or 'loop' with 'cycle'.
5fill in blank
hard

Fill all three blanks to complete the description of how to detect deadlocks using resource allocation graphs.

Operating Systems
To detect deadlocks, we look for a [1] in the graph. If found, we check if all resources in the cycle have [2] instance. If yes, the processes in the cycle are [3].
Drag options to blanks, or click blank then click option'
Acycle
Bone
Cdeadlocked
Dpath
Emultiple
Fsafe
Gloop
Hwaiting
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'deadlocked' with 'waiting' or 'safe'.
Ignoring the number of resource instances.