Operating System

106503
Back to Operating System

Module 5: Memory Management

  1. Q1a. Variable partition memory allocation can lead to? (i) external fragmentation (ii) internal fragmentation (iii) both (i) and (ii) (iv) none of these20232m

    Module 5: Memory Management

    Variable partition memory allocation can lead to?
    (i) external fragmentation
    (ii) internal fragmentation
    (iii) both (i) and (ii)
    (iv) none of these

    View this question on its own page →
  2. Q1e. Virtual memory is (i) an extremely large main memory (ii) an extremely large secondary memory (iii) an illusion of an extremely large memory (iv) a type of memory used in supercomputer20232m

    Module 5: Memory Management

    Virtual memory is
    (i) an extremely large main memory
    (ii) an extremely large secondary memory
    (iii) an illusion of an extremely large memory
    (iv) a type of memory used in supercomputer

    View this question on its own page →
  3. Q1f. In which of the following page replacement policy Belady's anomaly occurs? (i) FIFO (ii) LRU (iii) LFU (iv) NRU20222m

    Module 5: Memory Management

    In which of the following page replacement policy Belady's anomaly occurs?

    (i) FIFO
    (ii) LRU
    (iii) LFU
    (iv) NRU

    View this question on its own page →
  4. Q1g. In demand paging, pages are: (i) Loaded only when they are required during execution (ii) Loaded all at once before execution begins (iii) Never removed from main memory (iv) Loaded in random order20242m

    Module 5: Memory Management

    In demand paging, pages are:
    (i) Loaded only when they are required during execution
    (ii) Loaded all at once before execution begins
    (iii) Never removed from main memory
    (iv) Loaded in random order

    View this question on its own page →
  5. Q1h. If a process has 24 k bytes logical address space and the page size is 4096 bytes then the number of frames of that process is? (i) 12 (ii) 6 (iii) 8 (iv) 1620232m

    Module 5: Memory Management

    If a process has 24 k bytes logical address space and the page size is 4096 bytes then the number of frames of that process is?
    (i) 12
    (ii) 6
    (iii) 8
    (iv) 16

    View this question on its own page →
  6. Q1h. Internal fragmentation occurs when (i) Processes are swapped out (ii) Pages are missing (iii) Memory is completely utilized (iv) Unused space exists within an allocated memory partition20252m

    Module 5: Memory Management

    Internal fragmentation occurs when

    (i) Processes are swapped out
    (ii) Pages are missing
    (iii) Memory is completely utilized
    (iv) Unused space exists within an allocated memory partition

    View this question on its own page →
  7. Q1i. Which page replacement algorithm replaces the page that will not be used for the longest period in the future? (i) Optimal (ii) Second Chance (iii) FIFO (iv) NRU20252m

    Module 5: Memory Management

    Which page replacement algorithm replaces the page that will not be used for the longest period in the future?

    (i) Optimal
    (ii) Second Chance
    (iii) FIFO
    (iv) NRU

    View this question on its own page →
  8. Q1j. Which memory allocation policy allocates the largest hole to the process? (i) Best-fit (ii) Worst-fit (iii) First-fit (iv) None of the above.20222m

    Module 5: Memory Management

    Which memory allocation policy allocates the largest hole to the process?

    (i) Best-fit
    (ii) Worst-fit
    (iii) First-fit
    (iv) None of the above.

    View this question on its own page →
  9. Q1j. Physical memory is broken into fixed-sized blocks called (i) frames (ii) pages (iii) backing store (iv) None of the above20192m

    Module 5: Memory Management

    Physical memory is broken into fixed-sized blocks called

    (i) frames
    (ii) pages
    (iii) backing store
    (iv) None of the above

    View this question on its own page →
  10. Q3a. What do you understand by address binding, Explain the various address binding schemes.20227m

    Module 5: Memory Management

    What do you understand by address binding, Explain the various address binding schemes.

    View this question on its own page →
  11. Q3b. Consider the virtual page reference string 0, 4, 8, 20, 24, 36, 44, 12, 68, 72, 80, 84, 28, 32, 88, 92 on a demand paged virtual memory system running on computer system that has main memory of size 4 page frames which one initially empty. The CPU uses LRU page replacement policy. (i) How many page faults does this sequence cause? (ii) What are the page numbers of the pages present in the main memory at the end of the sequence?20227m

    Module 5: Memory Management

    Consider the virtual page reference string 0, 4, 8, 20, 24, 36, 44, 12, 68, 72, 80, 84, 28, 32, 88, 92 on a demand paged virtual memory system running on computer system that has main memory of size 4 page frames which one initially empty. The CPU uses LRU page replacement policy.
    (i) How many page faults does this sequence cause?
    (ii) What are the page numbers of the pages present in the main memory at the end of the sequence?

    View this question on its own page →
  12. Q4a. Compare between compile-time, load-time and execution-time address binding.20234m

    Module 5: Memory Management

    Compare between compile-time, load-time and execution-time address binding.

    View this question on its own page →
  13. Q4a. What is virtual memory? How is it implemented? Explain TLB in virtual memory with neat diagram.20247m

    Module 5: Memory Management

    What is virtual memory? How is it implemented? Explain TLB in virtual memory with neat diagram.

    View this question on its own page →
  14. Q4b. What is the purpose of modify bit in page table.20233m

    Module 5: Memory Management

    What is the purpose of modify bit in page table.

    View this question on its own page →
  15. Q4b. What is the difference between fixed partition and variable partition also explains the need of compaction.20247m

    Module 5: Memory Management

    What is the difference between fixed partition and variable partition also explains the need of compaction.

    View this question on its own page →
  16. Q4c. Explain paging with translation look-aside buffer (TLB) scheme with suitable diagrams.20237m

    Module 5: Memory Management

    Explain paging with translation look-aside buffer (TLB) scheme with suitable diagrams.

    View this question on its own page →
  17. Q5a. What is thrashing. Explain the main cause of thrashing. How can we limit the effects of thrashing.20235m

    Module 5: Memory Management

    What is thrashing. Explain the main cause of thrashing. How can we limit the effects of thrashing.

    View this question on its own page →
  18. Q5b. Consider the following page reference string: 7, 2, 3, 1, 2, 5, 3, 4, 6, 7, 7, 1, 0, 5, 4, 6, 2, 3, 0, 1. How many page faults would occur for the FIFO, LRU and Optimal page replacement algorithms, assuming demand paging with four frames? Remember that all frames are initially empty, so first unique pages will cost one fault each.20239m

    Module 5: Memory Management

    Consider the following page reference string:
    7, 2, 3, 1, 2, 5, 3, 4, 6, 7, 7, 1, 0, 5, 4, 6, 2, 3, 0, 1.
    How many page faults would occur for the FIFO, LRU and Optimal page replacement algorithms, assuming demand paging with four frames? Remember that all frames are initially empty, so first unique pages will cost one fault each.

    View this question on its own page →
  19. Q6b. What is the cause of thrashing? How does the system detect thrashing and once detected what can the system do to eliminate it20227m

    Module 5: Memory Management

    What is the cause of thrashing? How does the system detect thrashing and once detected what can the system do to eliminate it

    View this question on its own page →
  20. Q6b. What is Belady's Anomaly? Why LRU and Optimal Page Replacement algorithm doesn't suffer from this problem.20247m

    Module 5: Memory Management

    What is Belady's Anomaly? Why LRU and Optimal Page Replacement algorithm doesn't suffer from this problem.

    View this question on its own page →
  21. Q6b. Consider the main memory with the capacity of 4 page frames. Assume that the pages of a process are referenced in the order as given below: 1, 3, 4, 4, 3, 2, 1, 7, 5, 6, 4, 2, 1, 2 Which of FIFO or LRU would be better in this case as a page replacement policy? Why?20257m

    Module 5: Memory Management

    Consider the main memory with the capacity of 4 page frames. Assume that the pages of a process are referenced in the order as given below:
    1, 3, 4, 4, 3, 2, 1, 7, 5, 6, 4, 2, 1, 2

    Which of FIFO or LRU would be better in this case as a page replacement policy? Why?

    View this question on its own page →
  22. Q7. How many page faults would occur for the following reference string for four page frames and three page frames using LRU and FIFO algorithms: 1, 2, 3, 4, 5, 5, 3, 4, 1, 6, 7, 8, 7, 8, 9, 7, 8, 9, 5, 4, 5, 4, 2.201914m

    Module 5: Memory Management

    How many page faults would occur for the following reference string for four page frames and three page frames using LRU and FIFO algorithms:

    1, 2, 3, 4, 5, 5, 3, 4, 1, 6, 7, 8, 7, 8, 9, 7, 8, 9, 5, 4, 5, 4, 2.

    View this question on its own page →
  23. Q7a. What do you understand by fragmentation. Explain the difference between internal and external fragmentation.20227m

    Module 5: Memory Management

    What do you understand by fragmentation. Explain the difference between internal and external fragmentation.

    View this question on its own page →
  24. Q7a. What is Thrashing? When does it occur? How can one avoid it?20247m

    Module 5: Memory Management

    What is Thrashing? When does it occur? How can one avoid it?

    View this question on its own page →
  25. Q7b. 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, find the effective memory access time (in milliseconds).20227m

    Module 5: Memory Management

    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, find the effective memory access time (in milliseconds).

    View this question on its own page →
  26. Q7b. Consider the main memory with the capacity of 4 page frames. Assume that the page of process are referenced in the order as given below: 1, 3, 4, 4, 3, 2, 1, 7, 5, 6, 4, 2, 1, 2 Which of FIFO or LRU would be better in this case as a page replacement policy? Why?20247m

    Module 5: Memory Management

    Consider the main memory with the capacity of 4 page frames. Assume that the page of process are referenced in the order as given below:
    1, 3, 4, 4, 3, 2, 1, 7, 5, 6, 4, 2, 1, 2
    Which of FIFO or LRU would be better in this case as a page replacement policy? Why?

    View this question on its own page →
  27. Q8a. Explain the Address Translation mechanism in Paging. Why is the page size normally some power of two?20247m

    Module 5: Memory Management

    Explain the Address Translation mechanism in Paging. Why is the page size normally some power of two?

    View this question on its own page →
  28. Q8b. Explain the use of TLB in paging hardware and its benefits.20227m

    Module 5: Memory Management

    Explain the use of TLB in paging hardware and its benefits.

    View this question on its own page →
  29. Q8b. Given five memory partition of 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB(in order), how would the first-fit and best-fit algorithms place processes of 212 KB, 417 KB, 112 KB, and 426 KB (in order)? Which algorithm makes the most efficient use of memory?20247m

    Module 5: Memory Management

    Given five memory partition of 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB(in order), how would the first-fit and best-fit algorithms place processes of 212 KB, 417 KB, 112 KB, and 426 KB (in order)? Which algorithm makes the most efficient use of memory?

    View this question on its own page →
  30. Q9a. Write short notes on: Inverted Page Table20237m

    Module 5: Memory Management

    Write short notes on: Inverted Page Table

    View this question on its own page →
  31. Q9b. Write short notes on: Paging20227m

    Module 5: Memory Management

    Write short notes on: Paging

    View this question on its own page →
  32. Q9b. Write a short note on: Paging and segmentation20257m

    Module 5: Memory Management

    Write a short note on:

    Paging and segmentation

    View this question on its own page →
  33. Q9c. Write a short note on: Contiguous Memory allocation20257m

    Module 5: Memory Management

    Write a short note on:

    Contiguous Memory allocation

    View this question on its own page →
  34. Q9d. Write short notes on: Belady's Anomaly20237m

    Module 5: Memory Management

    Write short notes on: Belady's Anomaly

    View this question on its own page →