www.vustudents.ning.com

# CS604 - Assignment No. 2 - Fall 2018

Q.No.1

Suppose a Computer lab consists of two laser printers, three tape drives, and four ROM writers. Let us assume that Process 1 is currently using a printer and two ROM writers, Process 2 is using a tape drive, and Process 3 is using two ROM writers, a tape drive, and a printer. Now suppose that Process 1 requires a tape drive, Process 2 requires a printer, and Process 3 requires one more ROM writer.

You are required to develop the corresponding Resource Allocation Graph for this scenario. Moreover, you are required to tell either the system in a Deadlocked state or not?

Q.No.2

Suppose a system with twelve tape drives and three processes named as P1, P2 and P3. The current system state is as shown in the following table.

 Process Max Need Allocated Available P1 11 4 4 P2 4 2 P3 7 2

The available tape drives are four. You are required to calculate Need and Available matrices and find Safe sequence (if possible) with the help of information given in the above table.

Note: File name other than your Student ID will not get marks. File other than Microsoft Word will not be accepted.

Views: 5955

Attachments:

### Replies to This Discussion

to krte kyu ni ho ab kis bat ka intzar ha jab time khatam ho jay ga tab kro ge.

AOA.

bro plz send me the solution

kindly file share kr do yr

CS604 assignment 2 q1 asnswer

https://youtu.be/w0cF2qa5p6o

Dear Ali

Process 3 is using two ROM writers,

then the arrow should be from ROM Writer to p3 ?

and requesting 1 more process of rom.

you are right dear i am going to correct that in Q2

compare Q2 as well Kaleem Ullah

their is also correction in Q1

https://youtu.be/hI5XG3HYJvs

Correct :-)

agr solution file post ni krni hoti to yaha aaya b mat kre help krni ho to theak se kia kre plz solution file send kr de

1

2

3

4

5

## Latest Activity

### Be careful...

38 minutes ago
++❤MQ++A❤❤❤ updated their profile
53 minutes ago
55 minutes ago
++❤MQ++A❤❤❤ liked ++❤MQ++A❤❤❤'s discussion Useless
1 hour ago
++❤MQ++A❤❤❤ posted discussions
1 hour ago
++❤MQ++A❤❤❤ liked ++❤MQ++A❤❤❤'s discussion Mohabat ke Sham
1 hour ago
+!!★彡 "Mannat"彡★✓ liked Amna Bhatti's discussion JUMMA MUBARAK
1 hour ago

1 hour ago