Software Engineering Department
OS Practice Questions
1. Name two differences between logical and physical addresses.
2. Describe a mechanism by which one segment could belong to the address space of two
different processes.
3. Why are page sizes always powers of 2?
4. Consider a logical address space of 64 pages of 1,024 words each, mapped onto a
physical memory of 32 frames.
5. Explain the difference between internal and external fragmentation.
6. Given six memory partitions of 300 KB, 600 KB, 350 KB, 200 KB, 750 KB, and 125
KB (in order), how would the first-fit, best-fit, and worst-fit algorithms place processes
of size 115 KB, 500 KB, 358 KB, 200 KB, and 375 KB (in order)? Rank the algorithms
in terms of how efficiently they use memory.
7. On a system with paging, a process cannot access memory that it does not own. Why?
How could the operating system allow access to other memory? Why should it or
should it not?
8. Consider a paging system with the page table stored in memory.
a. If a memory reference takes 50 nanoseconds, how long does a paged memory
reference take? b. If we add TLBs and 75 percent of all page-table references are
found in the TLBs, what is the effective memory reference time? (Assume that
finding a page-table entry in the TLBs takes 2 nanoseconds if the entry is present.)
b. If we add TLBs, and 75 percent of all page-table references are found in the TLBs
9. Difference Between First Fit, Best Fit, Worst Fit.
10. Difference Between Contiguous and Non-Contiguous Memory Allocation.