www.vustudents.ning.com

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

# 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: 5975

Attachments:

### Replies to This Discussion

Assalam O Alaikum assignment cs604 solution plz

Lets discuss any thoughts ?

CS605 Question No. 1 - Helping Material - Very well explained

i think in Q1 deadlock will not going to happend

Agreed.

Lectures Suno.. Solution ki smjh lg jae gi.. :) SImple

Q 2 system is in safe mode

Mada banda kuch nai samajh lagrahi

Mujhe age bht zero aeeee han plz nahi ata mujhe

Agreed

i have just solved the assignment alhumdillilah. will upload soon

i also completed we can compare.

1

2

3

4

5

## VIP Member Badge & Others

------------------------------------

## Latest Activity

Mani Siddiqui posted a status
"وہ رکھ لے مجھے اپنے پاس کہیں قید کر کے کاش کے کچھ ایسا مجھ سے قصور ہو جائے."
7 minutes ago
Mani Siddiqui posted a status
"راز فاش نہ کرو تو ایک بات کہوں... ہم رفتہ رفتہ تیرے بن مر جائیں گے...\$"
15 minutes ago
Mani Siddiqui posted a status
"یری محبّت کو تم کیا آزماؤ گے* *جان سے زیادہ اور کیا مانگ پاؤ گے* *میری محبّت ستاروں جسی ہے* *کیا تم ان ستاروں کو گن پاؤ گے* \$"
16 minutes ago
zarish fatima joined + M.Tariq Malik's group

### IT430 E-Commerce

39 minutes ago
zarish fatima joined + M.Tariq Malik's group

### ENG201 Business and Technical English Writing

41 minutes ago
42 minutes ago
zarish fatima joined + M.Tariq Malik's group

### CS601 Data Communication

42 minutes ago
zarish fatima joined + M.Tariq Malik's group

43 minutes ago