Question: A deadlock is a situation in which two computer programs sharing the same resource are effectively preventing each other from accessing the resource, resulting in

 A deadlock is a situation in which two computer programs sharing

A deadlock is a situation in which two computer programs sharing the same resource are effectively preventing each other from accessing the resource, resulting in both programs ceasing to function. a) A system has 32MB of user memory and a disk, CD-ROM and a line printer attached to it. Two processes A and B, with the size of 8MB and12MB are currently in the memory. Process A requests and gets the CD-ROM. It is currently writing something to the device. Process B also requests for the CD-ROM. i. Explain the characteristics of pre-emptable and non-pre-emptable resources. ii. . Identify pre-emptable resources and non-pre-emptable resources from the description given above. iii. Discuss whether or not CD-ROM can be allocated to Process B before Process A finishes their task. b) Two processes P1 and P2 needs to read and update data on a tape file and print the result on a printer. i. Explain the steps showing how deadlock might occur in the above scenario. ii. Draw a resource allocation graph to support your explanation. | c) A computer has three USB drives and three processes. Each of the three processes able to hold one of the USB drives. Explain the steps showing how to avoid deadlock to take place in the above scenario. d) Describe the fate of the victim in deadlock resolution and the actions required in order to complete the victim's tasks

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 Databases Questions!