Open In App

GATE | GATE CS 1997 | Question 73

Last Updated : 30 Oct, 2017
Improve
Improve
Like Article
Like
Save
Share
Report

A program P reads and processes 1000 consecutive records from a sequential file F stored on device D without using any file system facilities. Given the following

Size of each record = 3200 bytes
Access time of D = 10 msecs
Data transfer rate of D = 800 × 103 bytes/second
CPU time to process each record = 3 msecs

What is the elapsed time of P if
a). F contains unblocked records and P does not use buffering?
b). F contains unblocked records and P uses one buffer (i.e., it always reads ahead into the buffer)?
c). records of F are organized using a blocking factor of 2 (i.e., each block on D contains two records of F) and P uses one buffer?

You may assume that the CPU time needed to transfer a record from a buffer to a local variable of P is negligible.


Answer:

Explanation:

Quiz of this Question
Please comment below if you find anything wrong in the above post


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads