Give an example of an unsafe state and show how all of the processes could complete without a deadlock occurring.

What will be an ideal response?


Consider the system state shown in Section 7.8.2, Example of an Unsafe State. The state is unsafe because only one resource unit is available and a minimum of two resource units would be needed to eventually allow all users to finish. Suppose P1 temporarily releases one resource unit. That makes two available. That enables P3 to finish and return three resource units. Then either P1 or P2 may finish, and eventually the other may finish.

Computer Science & Information Technology

You might also like to view...

Only after a called function requests that data be passed to it can the data be manipulated by the function to produce a useful result.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

In a Lookup formula, the defined range is referred to as the table array

Indicate whether the statement is true or false

Computer Science & Information Technology

Use the ____________________ to quickly create labels based on uniquely identified label templates.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The recommended length for a resume for a student just graduating from college is one page or at the most two pages.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology