The Gateway to Computer Science Excellence
0 votes

in Operating System by Junior (513 points) | 103 views
I think Last option d is the correct option
option (a) is correct

because firstly process has to made a request for some resource to use that resource then it is the duty of operating system to allocate resources to processes.operating system will first check for resource whether it is free or not,if it is free operating system will allocate resource to process otherwise process has to wait till the resource get free by another process.if resource is already free then it is assigned to process and process use it and then once work is done it will release the resource .

1 Answer

0 votes

Option A looks correct!

Because, before using any resource we have to request OS for that particular resource. Once request received, OS will check for its availability, and if it's available then will grant permission to access that resource. If not then, OS forces process to wait until resource become free/available. 

And once permission is granted, process will use requested resources and upon completion will release all connections with resources so that they become available for other process. 

The importance for sending a request before using it:

If the resource is not available when it is requested, the requesting process is forced to wait. In some operating systems, the process is automatically blocked when a resource request fails, and awakened when it becomes available. In other systems, the request fails with an error code, and calling process waits a little while and try again.

 Here, only option A has sequence of Request, Use & Release. Hence, A is correct.

by Active (1.9k points)

Related questions

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
50,737 questions
57,339 answers
105,204 users