05-29-2012, 07:59 PM
Assignment No. 03
SEMESTER SPRING 2012
CS604- Operating System
Total Marks: 20
Due Date: 1 st June
2012
Instructions
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
o The assignment is submitted after due date.
o The submitted assignment does not open or file corrupt.
o The assignment is copied.
o There is not mentioned the student Id in the assignment File or
name of file is other than student ID.
GOOD LUCK
Marks: 20
Question 1:
There are six processes given below with their run time units. Assume that all processes arrive in numerical order
at time 0 then answer the questions given below:
Process ID CPU Requirements
P1 5
P2 4
P3 7
P4 1
P5 8
P6 10
Show the scheduling order for these processes under first-come-first-served, shortest-job first, and round-
robin scheduling (quantum = 4).
Question 2:
There are two processes that could take place even at the same time. One process helps in getting amount from
the ATM and the second helps in depositing the money in the bank account through a cheque. You ensure mutual
exclusiveness by using semaphore with wait and signal operations. Write pseudo-code or algorithm for these two Uploading Instructions:
Upload your assignment as a word file. It should have name [YourRollNo.doc]
Deadline
Your assignment must be uploaded/submitted at or before 1 st June 2012
SEMESTER SPRING 2012
CS604- Operating System
Total Marks: 20
Due Date: 1 st June
2012
Instructions
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
o The assignment is submitted after due date.
o The submitted assignment does not open or file corrupt.
o The assignment is copied.
o There is not mentioned the student Id in the assignment File or
name of file is other than student ID.
GOOD LUCK
Marks: 20
Question 1:
There are six processes given below with their run time units. Assume that all processes arrive in numerical order
at time 0 then answer the questions given below:
Process ID CPU Requirements
P1 5
P2 4
P3 7
P4 1
P5 8
P6 10
Show the scheduling order for these processes under first-come-first-served, shortest-job first, and round-
robin scheduling (quantum = 4).
Question 2:
There are two processes that could take place even at the same time. One process helps in getting amount from
the ATM and the second helps in depositing the money in the bank account through a cheque. You ensure mutual
exclusiveness by using semaphore with wait and signal operations. Write pseudo-code or algorithm for these two Uploading Instructions:
Upload your assignment as a word file. It should have name [YourRollNo.doc]
Deadline
Your assignment must be uploaded/submitted at or before 1 st June 2012

mileys81: