We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

# CS604 - Operating Systems.Assignment # 2 has been uploaded, and its due date is 10th June 2015.Total Marks: 15

 Dear Student,In second assignment all of you are required to embed the audio on each slide too, to explain the steps how you calculate them.Regards Assignment No. 02 Semester: Spring 2015

• Your assignment must be in .ppt format. You have to make the power point slides and show the step by step procedure of calculations on slides (Any other formats like scan images, PDF, Zip, rar, bmp, etc will not be accepted).
• No assignment will be accepted through email.

Rules for Marking:

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

• The assignment is submitted after due date.
• The submitted assignment does not open or file is corrupted.
• Your assignment is copied from internet, handouts or from any other student

(Strict disciplinary action will be taken in this case).

Assignment

Suppose following processes arrive for execution in the sequence given in the table below, and will run the listed amount of time. Answer the given questions by keeping in mind the non-preemptive scheduling technique.

 Process Arrival Time Burst Time P1 0 5 P2 2.0 4.0 P3 4.0 3.0 P4 6.0 6.0

Question:   (5 marks each )

1. A.   Calculate waiting and average turnaround time for these processes with the FCFS scheduling algorithm?

1. B.   Calculate waiting and average turnaround time for these processes with the SJF scheduling algorithm?

1. C.   Calculate waiting and average turnaround time for these processes with the Shortest Remaining time First (SRTF) scheduling algorithm?

NOTE: Do not put any query on MDB about this assignment, if you have any query then email at cs604@vu.edu.pk.

Dear Student,

In second assignment all of you are required to embed the audio on each slide too, to explain the steps how you calculate them.

Regards

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

Views: 18365

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Attachments:

### Replies to This Discussion

calculate turnaround by this formula

Turnaround Time = Completion Time – Arrival Time

Now add all values of turnaround time and divided by 4

Aafreen shah ThAnK yOu So MuCh......!!!!

audio narration ka khawab inko pata ni kesy aa gya ab banda in ko ye btaye k  2 jama 2 is equal to 4 kesy hoty hn.....

hahahaahha well said

A: Calculate waiting and average turnaround time for these processes with the FCFS scheduling algorithm?

Sol:

First we create the Cantt Chart and then find the waiting and Turnaround Time.

TO calculate the Waiting time in FCFS is ;

P1 = 0,   P2 = 5,  P3 = 9  P4  =  12

Average waiting time is 0+5+9+12/4 = 6.5

Now Turnaround time is calculated with (Arrival time- Finish time)

P1 = 5,   P2 = 7  P3 = 8  P4  = 12

Average TAT is = 5+7+8+12/4 =  8

B: Calculate waiting and average turnaround time for these processes with the SJF scheduling algorithm?

Sol:

First we create the Cantt Chart and then find the waiting and Turnaround Time.

TO calculate the Waiting time in SJF (start time – arrival time) ;

P1 = 0,   P2 = 6,  P3 = 1  P4  =  6

Average waiting time is 0+6+1+6/4 = 3.25

Now Turnaround time is calculated with (completion- arrival time)

P1 = 5,   P2 = 10  P3 = 4  P4  = 12

Average TAT is = 5+10+4+12/4 =  7.75

Dear Student,

In second assignment all of you are required to embed the audio on each slide too, to explain the steps how you calculate them. Also, slove Q3with preemptive technique.

Regards

## Latest Activity

Sukaina and Soldier are now friends
5 minutes ago
Noman Ijaz liked + ! ! ! ❣ Sanam ❣ !+'s profile
1 hour ago
Soldier liked Sukaina's profile
1 hour ago
Bilal joined +M.Tariq Malik's group

### MTH001 Elementary Mathematics

1 hour ago
Preety Girl is now a member of Virtual University of Pakistan
1 hour ago
Mani Siddiqui BS VIII liked + ! ! ! ❣ Sanam ❣ !+'s profile
3 hours ago
maheen mahan joined +M.Tariq Malik's group

### CS502 Fundamentals of Algorithms

7 hours ago
maheen mahan added a discussion to the group CS610 Computer Network

### cs610 gdb idea solution spring2020

8 hours ago
8 hours ago
8 hours ago
"hi i am new here! any one from sailkot?"
8 hours ago
+ ! ! ! ! !Marshmallow updated their profile
16 hours ago

1

2

3