In what order should jobs be run to minimize the average response time?

Four jobs are waiting to be run. Their expected run times are 6, 3, 5 and x. In what order should they be run to minimize the average response time?

5Comments
Sumit Verma @sumitkgp
14 Jun 2017 12:50 pm

The best scheduling algorithm can be Round Robin here.

shweta @shweta1920
14 Jun 2017 02:01 pm

it asks for Order in which to execute not which scheduling algo @sumitverma sir

Sumit Verma @sumitkgp
14 Jun 2017 02:38 pm

@shweta1920 
Then run the processes in increasing order of run time.

shweta @shweta1920
14 Jun 2017 11:43 pm

pls see the question... what order so that less response time ... @sumit sir

Sumit Verma @sumitkgp
15 Jun 2017 02:43 pm

@shweta1920,
Shortest job first is the way to minimize average response time.
if x <3, order will be: x, 3, 5, 6
if 3 < x < 5 , order will be: 3, x, 5, 6
if 5 < x < 6, order will be: 3, 5, x, 6
if x >6, order will be: 3, 5, 6, x.