loading...

CS604 GDB Solution Spring 2012

Suppose a computer lab contains two printers, three tape drives, and four terabyte crystal ROM writers. Assume process 2 is currently using a printer and two crystal ROM writers, process 1 is using a tape drive, and process 3 is using two crystal ROM writers, a tape drive, and a printer. Suppose now that process 2 requires a tape drive, process 1 requires a printer, and process 3 requires one more crystal ROM writer. Does there exist any safe sequence or not? Give reason/justification to support your answer.

Solution:

P1’s request is satisfied immediately. Assuming that no more resource requests are made, P1 will be able to eventually complete, freeing the resources required by the other processes.
DOWNLOAD SOLUTION HERE
loading...