Operating System questions

I don’t understand this Computer Science question and need help to study.

1. Suppose you have a hard disk with 2200 tracks per surface, each track divided into 110 sectors, six platters and a blocksize of 512 bytes (i.e., 1 ⁄2 kilobyte), what is the total raw capacity of the disk drive?

2. A program may be written in a language that is compiled to ‘native’ binary (to the instruction opcodes the actual CPU knows how to do), or it may be interpreted (translated to native binary statement by statement as the program runs.) Suppose part of a program initializes a 500,000 element array to all 0 (i.e., each of 500,000 elements is set to 0). A compiled version performs this action in 0.008 seconds; an interpreted version takes 0.608 seconds. Why is the compiled version so much faster?

3. Suppose a disk drive in your system has a rotation speed of 7,200 rpm. and seek times of 0.75 ms track-to-track, or 22 ms full ‘stroke’ (inner edge to outer edge). (a) What is the average latency to access this drive? (b) If the sustained read rate is 36 Mbits/sec, how much more time after the average latency (you calculated above) will it take to read 750 Kbytes (assuming all those bytes are in sequential sectors on the same track)? How long to write that same amount of data if the sustained write speed is 24 Mbits/sec?

4. Suppose you replace the hard disk in the previous question with an optical drive like a DVD drive. The drive you use has an average access time of 185 ms, and can do sustained reads at 1600 Kbytes per second. How long will it take, including access time, to read the same 750 Kbytes off this optical disk (again, assuming all the data is in sequential sectors on same track)?

5. Unimpressed with your experiment with the optical drive, you now replace it with a solidstate drive. This dive has a sustained read rate of 580 Mbps, sustained write speed of 520 Mbps. For the 750 Kbytes of data, including average access time (latency), how long does it take to read the data? write the data?

 

  1. Start by sharing the instructions of your paper with us  
  2. And then follow the progressive flow.
  3. Have an issue, chat with us now

Regards,

Cathy, CS.