Question: When a thread requests an available resource, system must decide if immediate allocation leaves the system in a safe state System is in safe state

When a thread requests an available resource, system must decide
if immediate allocation leaves the system in a safe state
System is in safe state if there exists a sequence
of ALL the threads in the systems such that for each Ti, the
resources that Ti can still request can be satisfied by currently
available resources + resources held by all the Tj, with TiTiTjTjTiTiTi+1j
That is:
IfTi resource needs are not immediately available, then Ti can
wait until all Tj have finished
When Tjis finished, Ti can obtain needed resources, execute,
return allocated resources, and terminate
When Ti terminates, Ti+1 can obtain its needed resources, and
soon
When a thread requests an available resource,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!