OPERATING SYSTEM

105403
Back to OPERATING SYSTEM

Module 5: Memory Management

  1. Q1b. Which of the following page replacement algorithms suffers from Belady's anomaly? (i) Optimal replacement (ii) LRU (iii) FIFO (iv) Both (a) and (c)20232m

    Module 5: Memory Management

    Which of the following page replacement algorithms suffers from Belady's anomaly?
    (i) Optimal replacement
    (ii) LRU
    (iii) FIFO
    (iv) Both (a) and (c)

    View this question on its own page →
  2. Q1c. Compaction is used to solve the problem of (i) External fragmentation (ii) Internal fragmentation (iii) both (i) and (ii) (iv) None of these20242m

    Module 5: Memory Management

    Compaction is used to solve the problem of
    (i) External fragmentation
    (ii) Internal fragmentation
    (iii) both (i) and (ii)
    (iv) None of these

    View this question on its own page →
  3. Q1e. Compaction is used to solve the problem of (i) external fragmentation (ii) internal fragmentation (iii) both (a) and (c) (iv) None of these20232m

    Module 5: Memory Management

    Compaction is used to solve the problem of
    (i) external fragmentation
    (ii) internal fragmentation
    (iii) both (a) and (c)
    (iv) None of these

    View this question on its own page →
  4. Q1e. What is the difference between a page and a frame?20222m

    Module 5: Memory Management

    What is the difference between a page and a frame?

    View this question on its own page →
  5. Q1f. In contiguous memory allocation (i) each process is contained in a single contiguous section of memory (ii) all processes are contained in a single contiguous section of memory (iii) the memory space is contiguous (iv) None of the above20222m

    Module 5: Memory Management

    In contiguous memory allocation
    (i) each process is contained in a single contiguous section of memory
    (ii) all processes are contained in a single contiguous section of memory
    (iii) the memory space is contiguous
    (iv) None of the above

    View this question on its own page →
  6. Q1g. The address loaded into the memory address register of the memory is referred to as (i) Physical address (ii) IP address (iii) Port address (iv) Logical address20242m

    Module 5: Memory Management

    The address loaded into the memory address register of the memory is referred to as
    (i) Physical address
    (ii) IP address
    (iii) Port address
    (iv) Logical address

    View this question on its own page →
  7. Q1g. The CPU utilization when the system is ______ (i) timesharing (ii) thrashing (iii) multiprocessing (iv) None of the above20232m

    Module 5: Memory Management

    The CPU utilization when the system is ______
    (i) timesharing
    (ii) thrashing
    (iii) multiprocessing
    (iv) None of the above

    View this question on its own page →
  8. Q1g. If the size of logical address space is 2^m, and a page size is 2^n addressing units, then the high order bits of a logical address designate the page number, and the low order bits designate the page offset. (i) m, n (ii) n, m (iii) m-n, m (iv) m-n, n20222m

    Module 5: Memory Management

    If the size of logical address space is 2^m, and a page size is 2^n addressing units, then the high order bits of a logical address designate the page number, and the low order bits designate the page offset.
    (i) m, n
    (ii) n, m
    (iii) m-n, m
    (iv) m-n, n

    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. Q2b. Answer the following with justifications: (i) Does swapping improve or degrade the efficiency of system utilization? (ii) Can swapping be used in a multi-programming system?20227m

    Module 5: Memory Management

    Answer the following with justifications:
    (i) Does swapping improve or degrade the efficiency of system utilization?
    (ii) Can swapping be used in a multi-programming system?

    View this question on its own page →
  11. Q3a. What are the various allocation policies in variable partition multiprogramming? Explain the differences between internal and external fragmentations.20237m

    Module 5: Memory Management

    What are the various allocation policies in variable partition multiprogramming? Explain the differences between internal and external fragmentations.

    View this question on its own page →
  12. Q3b. What do you understand by address binding? Explain the various address binding schemes.20237m

    Module 5: Memory Management

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

    View this question on its own page →
  13. Q5a. 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 →
  14. Q5b. 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 →
  15. 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 →
  16. 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 →
  17. Q7b. Consider the following page reference string: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1. How many page faults would occur for the following replacement algorithms? Assuming 3 frames are available. Also assume that initially none of pages in main memory. (i) Optimal replacement (ii) FIFO replacement20237m

    Module 5: Memory Management

    Consider the following page reference string: 7, 0, 1, 2, 0, 3, 0, 4, 2, 3, 0, 3, 2, 1, 2, 0, 1, 7, 0, 1. How many page faults would occur for the following replacement algorithms? Assuming 3 frames are available. Also assume that initially none of pages in main memory.
    (i) Optimal replacement
    (ii) FIFO replacement

    View this question on its own page →
  18. Q8. Consider the following page reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6. Compare the page faults occur for the following replacement algorithms using 3 frames? Assume, initially all the frames are empty. (i) LRU replacement (ii) FIFO Replacement202414m

    Module 5: Memory Management

    Consider the following page reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6.
    Compare the page faults occur for the following replacement algorithms using 3 frames? Assume, initially all the frames are empty.
    (i) LRU replacement
    (ii) FIFO Replacement

    View this question on its own page →
  19. Q8a. Consider a simple paging system with the following parameters: * 2^32 bytes of physical memory * Page size of 2^10 bytes * 2^16 pages of logical address space (i) How many bits are in a logical address? (ii) How many bytes are in a frame? (iii) How many bits in the physical address specify the frame? (iv) How many entries are in the page table?20227m

    Module 5: Memory Management

    Consider a simple paging system with the following parameters:

    • 2^32 bytes of physical memory
    • Page size of 2^10 bytes
    • 2^16 pages of logical address space

    (i) How many bits are in a logical address?
    (ii) How many bytes are in a frame?
    (iii) How many bits in the physical address specify the frame?
    (iv) How many entries are in the page table?

    View this question on its own page →
  20. Q8b. Given five memory partitions of 100 KB, 500 KB, 200 KB, 300 KB and 600 KB (in order). How would the first-fit, best-fit, and worst-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?20227m

    Module 5: Memory Management

    Given five memory partitions of 100 KB, 500 KB, 200 KB, 300 KB and 600 KB (in order). How would the first-fit, best-fit, and worst-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 →
  21. Q9a. Consider a demand-paging system with a paging disk that has an average access and transfer time of 20 milli-seconds. Addresses are translated through a page table in main memory, with an access time of 1 microsecond per memory access. Thus, each memory reference through the page table takes two accesses. To improve this time, we have added an associative memory that reduces access time to one memory reference if the page-table entry is in the associative memory. Assume that 80 percent of the accesses are in the associative memory and that of those remaining, 10 percent (or 2 percent of the total) cause page faults. What is the effective memory access time?20227m

    Module 5: Memory Management

    Consider a demand-paging system with a paging disk that has an average access and transfer time of 20 milli-seconds. Addresses are translated through a page table in main memory, with an access time of 1 microsecond per memory access. Thus, each memory reference through the page table takes two accesses. To improve this time, we have added an associative memory that reduces access time to one memory reference if the page-table entry is in the associative memory.
    Assume that 80 percent of the accesses are in the associative memory and that of those remaining, 10 percent (or 2 percent of the total) cause page faults. What is the effective memory access time?

    View this question on its own page →
  22. Q9b. Write short note on: Segmentation20237m

    Module 5: Memory Management

    Write short note on: Segmentation

    View this question on its own page →
  23. Q9c. Write short note on: Thrashing20237m

    Module 5: Memory Management

    Write short note on: Thrashing

    View this question on its own page →