CS604 - Operating Systems Assignment No. 2 Discussion & Solution Spring 2019 Due Date: June 03, 2019

Operating Systems(CS604)

Assignment # 02
Spring 2019

 

Total marks = 20                                                                              

 

Deadline Date
3rd June 2019

 

 

Please carefully read the following instructions before attempting assignment.

 

RULES FOR MARKING

It should be clear that your assignment would not get any credit if:

  • The assignment is submitted after the due date.
  • The submitted assignment file does not open or itis corrupt.
  • The submitted assignment solution is copied from any other student or from the internet.

 

You should consult the recommended books to clarify your concepts as handouts are not sufficient.

 

You are supposed to submit your assignment in .doc or docxformat.

Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.

 

Objective:

·         The objective of this assignment is to provide hands on experience of:

Different Process Scheduling Algorithms in Operating System

 

 

NOTE

 

No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.

 

If you find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.

 

For any query, feel free to email at:

cs604@vu.edu.pk

 

 

 

 

 

 

 

 

 

Question No 01                                                                       10 marks

Assume you have to apply First Come First Serve (FCFS) scheduling algorithms on the set of different processes given in the table below. The CPU burst time is also given for each process. Consider that all the processes arrive in the ready queue within time 0 seconds. You are required to show the Gantt chart to illustrate the execution sequence of these processes and calculate the total waiting time and average waiting time for the given processes by using FCFS algorithm.

 

 

Process

CPU Burst Time (seconds)

P0

26

P1

11

P2

16

P3

10

P4

34

P5

6

 

 

 

 

 

 

 

 

 

 

 

 

 

Question No 02                                                                       10 marks

Consider a scenario whereyou have to apply Round Robin scheduling algorithm on the below given set of processeswith each having a quantum size=10 milliseconds. The CPU burst time and arrival time for each process is also provided in the given table.You are required to show the Gantt chart to illustrate the execution sequence of these processes. Moreover, calculate the average turnaround time and average waiting time for given processes by using round robin algorithm.

 

Process

CPU Burst Time (Milliseconds)

Arrival Time

(Milliseconds)

P0

15

0

P1

8

4

P2

25

6

P3

18

9

 

 

 

 

 

 

 

 

 

 

Wish you very Best of Luck!

Tags: &, -, 03, 2, 2019, Assignment, CS604, Date:, Discussion, Due, More…June, No., Operating, Solution, Spring, Systems

Views: 223

Attachments:

SPONSORED LINKS

SPONSORED LINKS

© 2019   Created by Irfan Khan MSCS.   Powered by

Badges  |  Report an Issue  |  Terms of Service