The Gateway to Computer Science Excellence
+3 votes

Consider a System using Round Robin scheduling with 10 Processes all arriving at the time 0. Each Process is associated with 20 identical Request. Each Process request consumes 20 ms of CPU time after which it spends 10 ms of time on I/O,thereafter intiates subsequent Request. Assuming scheduling Overhead of 2 ms and Time Quantum of 20 ms, Calculate

i. Response time of the 1st Request of the 1st Process.

ii. Response time of the 1st Request of the last Process.

iii. Response time of the subsequent request of any process.

in Operating System by (199 points) | 519 views
(1) response time of first process =10 unit

(2) response time of the last process=108 unit

correct me if i am wrong.

BASANT KUMAR How do you get 1st Request of the 1st Process 10 unit? I think it will be 2. 

1 Answer

0 votes

response time of first request of first process=2+20=22ms

Response time of first request of last process =(2+20)*10=220ms

Response time of subsequent request of any process=10+210=220ms


by (37 points)
Can you please explain that why should we not consider 10ms of I/O in response time. For instance, here response time of first request of P1 should actually be 32ms, because only after that will we get the output of first request of first process.

source: stack overflow

Response time - The time taken in a program from the issuance of a command to the commence of a response to that command.(i.e., the time-interval between submission of a request, and the first response to that request, not the output .)  

here in the question request itself takes 20 ms

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,370 answers
105,275 users