Unit5 - Subjective Questions

CSE316 • Practice Questions with Detailed Answers

1

Differentiate between Logical Address Space and Physical Address Space. Explain the role of the Memory Management Unit (MMU).

2

Explain the concept of Swapping. How does it improve the degree of multiprogramming?

3

Compare Internal Fragmentation and External Fragmentation. Which memory allocation schemes suffer from them?

4

Describe the Contiguous Memory Allocation strategies: First-fit, Best-fit, and Worst-fit. Which is generally considered the most efficient?

5

Define Paging. Explain the hardware implementation of a Page Table and the translation from logical to physical addresses using LaTeX.

6

What is a TLB (Translation Look-aside Buffer) and why is it necessary in a paging system?

7

Explain the concept of Segmentation. How does it differ from Paging in terms of the user's view of memory?

8

Describe Segmentation with Paging (Paged Segmentation). Why is this hybrid approach used?

9

Explain Hierarchical Paging (Multi-level Paging). Why is it required for systems with large logical address spaces?

10

What are Overlays? Explain how they allow a process larger than available memory to execute.

11

Define Virtual Memory. What are the major benefits of using Virtual Memory?

12

Explain the concept of Demand Paging. How does the "Lazy Swapper" work?

13

What is a Page Fault? List the steps involved in handling a page fault.

14

Derive the formula for Effective Access Time (EAT) in a demand paging system. Calculate EAT if memory access is 200ns and page fault overhead is 8ms, with a page fault rate of .

15

Describe FIFO Page Replacement Algorithm. What is Belady's Anomaly?

16

Explain the Optimal Page Replacement Algorithm. Why is it difficult to implement?

17

Describe the Least Recently Used (LRU) page replacement algorithm. How can it be implemented using a Stack?

18

What is Thrashing? What causes it, and how can the Working Set Model prevent it?

19

Compare Paging and Segmentation based on specific criteria.

20

Given the reference string: 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 and 3 physical frames. Calculate the number of page faults using the FIFO algorithm.