OPERATING SYSTEM
105403Module 5: Memory Management
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
View this question on its own page →Which of the following page replacement algorithms suffers from Belady's anomaly?
(i) Optimal replacement
(ii) LRU
(iii) FIFO
(iv) Both (a) and (c)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
View this question on its own page →Compaction is used to solve the problem of
(i) External fragmentation
(ii) Internal fragmentation
(iii) both (i) and (ii)
(iv) None of theseQ1e. 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
View this question on its own page →Compaction is used to solve the problem of
(i) external fragmentation
(ii) internal fragmentation
(iii) both (a) and (c)
(iv) None of theseQ1e. What is the difference between a page and a frame?20222m
Module 5: Memory Management
View this question on its own page →What is the difference between a page and a frame?
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
View this question on its own page →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 aboveQ1g. 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
View this question on its own page →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 addressQ1g. The CPU utilization when the system is ______ (i) timesharing (ii) thrashing (iii) multiprocessing (iv) None of the above20232m
Module 5: Memory Management
View this question on its own page →The CPU utilization when the system is ______
(i) timesharing
(ii) thrashing
(iii) multiprocessing
(iv) None of the aboveQ1g. 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
View this question on its own page →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, nQ1j. 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
View this question on its own page →Physical memory is broken into fixed-sized blocks called
(i) frames
(ii) pages
(iii) backing store
(iv) None of the aboveQ2b. 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
View this question on its own page →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?Q3a. What are the various allocation policies in variable partition multiprogramming? Explain the differences between internal and external fragmentations.20237m
Module 5: Memory Management
View this question on its own page →What are the various allocation policies in variable partition multiprogramming? Explain the differences between internal and external fragmentations.
Q3b. What do you understand by address binding? Explain the various address binding schemes.20237m
Module 5: Memory Management
View this question on its own page →What do you understand by address binding? Explain the various address binding schemes.
Q5a. What is the difference between fixed partition and variable partition also explains the need of compaction.20247m
Module 5: Memory Management
View this question on its own page →What is the difference between fixed partition and variable partition also explains the need of compaction.
Q5b. What is virtual memory? How is it implemented? Explain TLB in virtual memory with neat diagram.20247m
Module 5: Memory Management
View this question on its own page →What is virtual memory? How is it implemented? Explain TLB in virtual memory with neat diagram.
Q6b. What is Belady's Anomaly? Why LRU and Optimal Page Replacement algorithm doesn't suffer from this problem.20247m
Module 5: Memory Management
View this question on its own page →What is Belady's Anomaly? Why LRU and Optimal Page Replacement algorithm doesn't suffer from this problem.
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
View this question on its own page →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.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
View this question on its own page →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 replacementQ8. 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
View this question on its own page →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 ReplacementQ8a. 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
View this question on its own page →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?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
View this question on its own page →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?
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
View this question on its own page →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?Q9b. Write short note on: Segmentation20237m
Q9c. Write short note on: Thrashing20237m