Thursday , 21 November 2024

CS604 Assignment no 4 Fall 2012 Solution will upload soon

Question 1: [Marks 20]

Let us consider a table given below.

Process Arrival Time         Burst Time  
A 1.0 9
B 1.4 5
C 2.0 2



table shows different processes arriving in the sequence listed in the table.

a)  Let us consider that CPU remains idle for first 2 unit of time. Draw the Gantt chart and calculate the average turnaround time for above processes in this situation by using non preemptive Shortest Job First (SJF) scheduling strategy. [Marks 3] 

b)  Let us consider that CPU remains idle for first 1.5 unit of time. Draw the Gantt chart and calculate the average waiting time for above processes in this situation by using non preemptive Shortest Job First (SJF) scheduling strategy. [Marks 5]


c)  Let us consider that CPU remains idle for first 1 unit of time and let us consider that a fourth process ‘D’ enters the system at time 3 and needs 1 unit of CPU time. Draw the Gantt chart and Calculate the average waiting time for four processes A, B, C and D in this situation by using preemptive SJF i.e. Shortest Remaining Time scheduling strategy. [Marks 6]

d)  Let us consider that CPU remains idle for first 3 unit of time. In this situation, draw the Gantt chart and calculate the average waiting time for a round robin algorithm with q (time quantum) set at 2. Ignore the effect of context switching time. [Marks 6]

Note:

i. In the above case we are considering only a single processor.

Uploading Instructions:

Upload your assignment as a word file. It should have name [YourRollNo.doc]. Your assignment must be uploaded/submitted at or before Thursday, January 03, 2013

Check Also

CS604 Assignment no 02 Spring 2013

  Assignment No. 02 Total Marks:20 Due Date: Spring 2013 Tuesday 14th May CS604- Operating …

One comment

  1. where is solution???

Leave a Reply

Your email address will not be published. Required fields are marked *

*