Professional Documents
Culture Documents
Assignment-2 COA
Assignment-2 COA
Set-1
Q1. Consider a system with 80% hit ratio, 50 nano-seconds time to search the associative registers,
750 nano-seconds time to access memory.
Find the time to access a page
a. When the page number is in associative memory.
b. When the time to access a page when not in associative memory.
c. Find the effective memory access time.
Q2. Virtual memory system has 6k words of address space and 3k words of memory space. Page
references are made by CPU in following sequence:
3, 2, 0, 3, 4, 1, 2, 2, 0
Find out the pages that are available at the end if the replacement algorithm used is
(a) LRU (b) FIFO Assume the page and block size of 1k words.
Set-2
Q1. The access time of a cache memory is 120 ns and that of main memory 900 ns. It is estimated
that 80% of the memory requests are for read and remaining 20% for write. The hit ratio for read
access only is 0.9. A write-through procedure is used.
(i) What is the average access time of the system considering only memory real cycles?
(ii) What is the hit ratio taking in to consideration the write cycle?
(iii) What is the average access time of the system for both read and write requests.
Q3. Describe the advantages of interrupt initiated i/o over programmed i/o with suitable diagrams.
Set-3
Q1. In a two-level memory hierarchy, if the cache has an access time of ns and main memory has
an access time of 60ns, what is the hit rate in cache required to give an average access time of
10ns?
Q3. Does a basic computer handle an interrupt? Explain what happens during the interrupt with
the help of an example.