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)

  1. Distinguish logical and physical addresses.
  2. What is swapping?
  3. Distinguish MFT and MVT.
  4. What is external fragmentation?
  5. Define paging.
  6. What is a TLB?
  7. What is a page fault?
  8. What is Belady's anomaly?
  9. What is thrashing?
  10. Define seek time.

Medium Answer Questions (5 marks each)

  1. Explain address binding and the MMU.
  2. Explain first fit, best fit and worst fit with an example.
  3. Explain paging with the TLB.
  4. Explain segmentation.
  5. Explain the steps of handling a page fault.
  6. Explain SCAN and C-SCAN disk scheduling.

Long Answer Questions (15 marks each)

  1. Explain logical and physical addresses, swapping, and contiguous allocation with MFT, MVT, fragmentation and compaction.
  2. Explain paging and segmentation with address translation.
  3. Explain virtual memory, demand paging, page replacement algorithms, frame allocation and thrashing.
  4. Explain disk structure and the disk scheduling algorithms with an example.

Sources

  • Official BCA syllabus Operating Systems, course code 25BCA402DS03, Unit IV