recategorized by
3,818 views
2 votes
2 votes

Consider the following processes with time slice of 4 milliseconds (I/O requests are ignored):

Process A B C D
Arrival time 0 1 2 3
CPU Cycle 8 4 9 5

The average turnaround time of these processes will be

  1. 19.25 milliseconds
  2. 18.25 milliseconds
  3. 19.5 milliseconds
  4. 18.5 milliseconds
recategorized by

2 Answers

3 votes
3 votes

Answer : 18.25 milliseconds

Process AT BT CT TAT
A 0 8 20 20
B 1 4 8 7
C 2 9 26 24
D 3 5 25 22
A B C D A C D C

0            4             8              12           16              20         24             25          26

Avg TAT = 20 + 7 + 24 + 22 / 4 = 18.25 

1 votes
1 votes

Answer B

The system uses Round robin algorithm of time quantum = 4ms

| o A |4 B |8 C |12 D | 16 A |20 C|24| D |25 C |26

average turn around time = (Finished time- start time) of each process/ no of processes.

=(20-0)+(8-1)+(26-2)+(25-3) /4 = 18.25 ms

edited by
Answer:

Related questions

2 votes
2 votes
2 answers
1
go_editor asked Jul 19, 2016
2,067 views
The versions of windows operating system like Windows XP and Window Vista uses following file system:FAT-16FAT-32NTFS (NT File System)All of the above
3 votes
3 votes
2 answers
2
go_editor asked Jul 19, 2016
2,912 views
Working set model is used in memory management to implement the concept ofSwappingPrincipal of LocalitySegmentationThrashing
4 votes
4 votes
2 answers
4
go_editor asked Jul 18, 2016
6,090 views
Suppose $\text{S}$ and $\text{Q}$ are two semaphores initialized to $1.\;\text{P1}$ and $\text{P2}$ are two processes which are sharing resources.$\begin{array}{} \textbf...