152k views
5 votes
What is the capacity of a disk with two platters, 10,000 cylinders, an average of 400 sectors per track, and 512 bytes per sector?

What is the use of cache memory? Explain the concepts of cache hit and cache miss.

1 Answer

1 vote

Answer:

The capacity of the disk is "40 GB".

Step-by-step explanation:

Given value:


\to \text{cylinder}= 10,000\\\\\to (sector)/(track) = 400\\\\\to (bytes)/(sector) = 512\\


\text{Calculating the size of track} = (bytes)/(sector) * (sector)/(track)


= 512 * 400 \\\\ = 204,800 \ \ Or \ \ 200 \ K


\text{Calculating the size of surface} = (byte)/(track) * \ cylinder


= 2000 \ K * 10,000 \\\\ = 20, 000,000 \ K


\text{Calculating the capacity of a disk} = (byte)/(surface) * (surface)/(disk)


= 20, 000,000 \ K * 2 \\\\ = 40, 000,000 \ K \\\\= 40 \ GB

Cache memory is often used to speed up the runtime. It will enable us to improve performance unless we can store information, that is retrieved constantly in memory space.

  • Hit Cache: when the Processor relates to representing database data, Cache Hit results.
  • Miss Cache: when this Processor responds to a non-present cache data, this will trigger its miss of cache.
  • It doesn't have to retrieve the Main Memory through secondary storage.
User Boqapt
by
5.3k points