in Operating System
393 views
0 votes
0 votes

in Operating System
393 views

2 Comments

I think Last option d is the correct option
0
0
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 .
0
0

1 Answer

0 votes
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.

Related questions