Unit summary
- The CPU generates logical addresses, which the MMU maps to physical addresses; swapping moves processes to and from disk.
- MFT uses fixed partitions with internal fragmentation, and MVT uses variable partitions with external fragmentation, solved by compaction.
- Paging maps fixed pages to frames, and segmentation maps variable segments using base and limit.
- Virtual memory with demand paging loads pages only when needed, handling page faults.
- FIFO, Optimal and LRU replace pages; frames are allocated equally or proportionally; thrashing is excessive paging.
- Disks are scheduled by FCFS, SSTF, SCAN, C-SCAN and LOOK to reduce head movement.
Glossary
| Term | Meaning |
|---|---|
| Belady's anomaly | More frames giving more faults. |
| Compaction | Moving processes to merge free memory. |
| External fragmentation | Waste between allocated blocks. |
| Frame | A fixed-size block of physical memory. |
| Internal fragmentation | Waste inside an allocated block. |
| Logical address | An address generated by the CPU. |
| LRU | Least recently used replacement. |
| MFT | Multiprogramming with fixed partitions. |
| MMU | Hardware that maps logical to physical addresses. |
| MVT | Multiprogramming with variable partitions. |
| Page | A fixed-size block of logical memory. |
| Page fault | A reference to a page not in memory. |
| Page table | A map from pages to frames. |
| Physical address | An address seen by memory. |
| Seek time | Time to move the disk arm. |
| Segment | A variable-size logical unit of a program. |
| SSTF | Shortest seek time first disk scheduling. |
| Swapping | Moving processes between memory and disk. |
| Thrashing | Excessive paging. |
| TLB | A cache of page-table entries. |
| Virtual memory | Running programs partly in memory. |
Question bank
Short Answer Questions (2 marks each)
- Distinguish logical and physical addresses.
- What is swapping?
- Distinguish MFT and MVT.
- What is external fragmentation?
- Define paging.
- What is a TLB?
- What is a page fault?
- What is Belady's anomaly?
- What is thrashing?
- Define seek time.
Medium Answer Questions (5 marks each)
- Explain address binding and the MMU.
- Explain first fit, best fit and worst fit with an example.
- Explain paging with the TLB.
- Explain segmentation.
- Explain the steps of handling a page fault.
- Explain SCAN and C-SCAN disk scheduling.
Long Answer Questions (15 marks each)
- Explain logical and physical addresses, swapping, and contiguous allocation with MFT, MVT, fragmentation and compaction.
- Explain paging and segmentation with address translation.
- Explain virtual memory, demand paging, page replacement algorithms, frame allocation and thrashing.
- Explain disk structure and the disk scheduling algorithms with an example.
Sources
- Official BCA syllabus Operating Systems, course code 25BCA402DS03, Unit IV
