Define a relation between hit ratio and locality of reference.
To handle a page fault, between FIFO and LRU algorithms, using which one may result a system with better performance and why?
Answers
Answer:
1. Define a relation between hit ratio and locality of reference.
Ans. In order to maximize the cache hit ratio, programs should be written so that they are likely to access a small group of memory addresses repeatedly before moving on to new addresses. This increases the likelihood that the data will still be in the cache when it is read again. These memory addresses need not be close to each other, since the cache can contain a completely random collection of memory addresses at any given moment.
2.To handle a page fault, between FIFO and LRU algorithms, using which one may result a system with better performance and why?
Ans. In an operating system that uses paging for memory management, a page replacement algorithm is needed to decide which page needs to be replaced when new page comes in.
Hope this answer will help u
Follow me and mark my answer as BRAINLIEST answer !!