closed by
353 views
0 votes
0 votes
closed as a duplicate of: Os+ file access

Consider six files: F1, F2, F3, F4, F5, F6 with corresponding sizes 100, 200, 70, 40, 250 and 50 respectively. the files are to be stored on a sequential device in such a way that as to optimize access time.

  1. In what order should the files be stored ?? 
    1. A) F6, F5, F4, F3, F2, F1  B) F1, F2, F3, F4, F5, F6  C) F5,F2,F1,F3,F6,F4  D)F4, F6, F3, F1, F2 ,F5
  2. What will be the approximate average access time of a record from one of the six files on the sequential device??
    1. A) 131 B) 198 C) 286 D) 433
closed by

1 Answer

0 votes
0 votes
Let’s say, the unit access time of a file is 1.

$\therefore$ the access time of a file $\equiv$ the size of the file

The files are stored in a sequential device, which means no preemption is done during a CPU cycle. If we use SJF with no preemption then we get the order F4, F6, F3, F1, F2, F5; which is option D.

No related questions found