• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

OS Memory Management

Question 21

Consider the data given in above question. Least Recently Used (LRU) page replacement policy is a practical approximation to optimal page replacement. For the above reference string, how many more page faults occur with LRU than with the optimal page replacement policy?
  • 0
  • 1
  • 2
  • 3

Question 22

Assume that there are 3 page frames which are initially empty. If the page reference string is 1, 2, 3, 4, 2, 1, 5, 3, 2, 4, 6, the number of page faults using the optimal replacement policy is__________.
  • 5
  • 6
  • 7
  • 8

Question 23

A computer has twenty physical page frames which contain pages numbered 101 through 120. Now a program accesses the pages numbered 1, 2, …, 100 in that order, and repeats the access sequence THRICE. Which one of the following page replacement policies experiences the same number of page faults as the optimal page replacement policy for this program?
  • Least-recently-used
  • First-in-first-out
  • Last-in-first-out
  • Most-recently-used

Question 24

A system uses 3 page frames for storing process pages in main memory. It uses the Least Recently Used (LRU) page replacement policy. Assume that all the page frames are initially empty. What is the total number of page faults that will occur while processing the page reference string given below? 4, 7, 6, 1, 7, 6, 1, 2, 7, 2
  • 4
  • 5
  • 6
  • 7

Question 25

Consider a paging hardware with a TLB. Assume that the entire page table and all the pages are in the physical memory. It takes 10 milliseconds to search the TLB and 80 milliseconds to access the physical memory. If the TLB hit ratio is 0.6, the effective memory access time (in milliseconds) is _________.
  • 120
  • 122
  • 124
  • 118

Question 26

The memory access time is 1 nanosecond for a read operation with a hit in cache, 5 nanoseconds for a read operation with a miss in cache, 2 nanoseconds for a write operation with a hit in cache and 10 nanoseconds for a write operation with a miss in cache. Execution of a sequence of instructions involves 100 instruction fetch operations, 60 memory operand read operations and 40 memory operand write operations. The cache hit-ratio is 0.9. The average memory access time (in nanoseconds) in executing the sequence of instructions is __________.

  • 1.26

  • 1.68

  • 2.46

  • 4.52

Question 27

A CPU generates 32-bit virtual addresses. The page size is 4 KB. The processor has a translation look-aside buffer (TLB) which can hold a total of 128 page table entries and is 4-way set associative. The minimum size of the TLB tag is:
  • 11 bits
  • 13 bits
  • 15 bits
  • 20 bits

Question 28

A computer system supports 32-bit virtual addresses as well as 32-bit physical addresses. Since the virtual address space is of the same size as the physical address space, the operating system designers decide to get rid of the virtual memory entirely. Which one of the following is true?
  • Efficient implementation of multi-user support is no longer possible
  • The processor cache organization can be made more efficient now
  • Hardware support for memory management is no longer needed
  • CPU scheduling can be made more efficient now

Question 29

The minimum number of page frames that must be allocated to a running process in a virtual memory environment is determined by
  • the instruction set architecture
  • page size
  • physical memory size
  • number of processes in memory

Question 30

Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds, and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 90%, and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time?
  • 645 nanoseconds
  • 1050 nanoseconds
  • 1215 nanoseconds
  • 1230 nanoseconds

There are 153 questions to complete.

Last Updated :
Take a part in the ongoing discussion