Operating Systems · 4 topics · 18 questions
Pro
For final-round preparation. Covers virtual memory and address translation, page replacement and thrashing, file systems and disk scheduling, and fully worked OS numericals.
Pro progress0%
- 1st Visit
- 0/18
- 2nd Visit
- 0/18
- Revise
- 0/18
01Virtual Memory & Paging
0/5
Virtual memory gives every process a large, private address space that does not have to fit in physical RAM. Pages are loaded on demand: the page table maps each…
Topic guide02Page Replacement & Thrashing
0/4
When a page fault occurs and every frame is full, the operating system must choose a page to evict. The choice strongly affects performance, because evicting a page…
Topic guide| # | Problem | Platform | Difficulty | Open | 1st1st Visit | 2nd2nd Visit | RevRevise |
|---|---|---|---|---|---|---|---|
| 1 | Compare FIFO, LRU and Optimal page replacement. | Concept | Medium | Read the answer to Compare FIFO, LRU and Optimal page replacement. | |||
| 2 | What is Belady's anomaly? | Concept | Medium | Read the answer to What is Belady's anomaly? | |||
| 3 | Why is exact LRU expensive, and how does the clock algorithm approximate it? | Concept | Hard | Read the answer to Why is exact LRU expensive, and how does the clock algorithm approximate it? | |||
| 4 | What is thrashing, why does it happen, and how can it be prevented? | Concept | Hard | Read the answer to What is thrashing, why does it happen, and how can it be prevented? |
03File Systems & Disk Scheduling
0/4
A file system organises data on a storage device into files and directories. On Unix like systems, each file is described by an inode that holds its metadata and block…
Topic guide| # | Problem | Platform | Difficulty | Open | 1st1st Visit | 2nd2nd Visit | RevRevise |
|---|---|---|---|---|---|---|---|
| 1 | What is an inode, and what information does it store? | Concept | Medium | Read the answer to What is an inode, and what information does it store? | |||
| 2 | How do directories map file names to inodes, and what is the difference between a hard link and a soft link? | Concept | Medium | Read the answer to How do directories map file names to inodes, and what is the difference between a hard link and a soft link? | |||
| 3 | What are the contiguous, linked and indexed file allocation methods? | Concept | Medium | Read the answer to What are the contiguous, linked and indexed file allocation methods? | |||
| 4 | Compare FCFS, SSTF, SCAN and C-SCAN disk scheduling. | Concept | Hard | Read the answer to Compare FCFS, SSTF, SCAN and C-SCAN disk scheduling. |
04OS Numericals
0/5
Placement tests and interviews often include short OS numericals that check whether you understand an algorithm well enough to run it by hand. This topic collects the…
Topic guide