Placements roadmap
Operating systems
The OS questions interviewers ask most: processes and threads, scheduling, synchronisation, deadlock and memory. 4 topics, about 16 hours.
Processes, threads and scheduling
About 4 h.
- Explain process vs thread, context switches and what a PCB holds
- Compare FCFS, SJF and round robin with a Gantt chart
Visualisers: CPU scheduling
Synchronisation and deadlock
About 5 h.
- Explain race conditions, mutexes and semaphores with producer-consumer
- State the four deadlock conditions and how to prevent or avoid each
Visualisers: Semaphores & synchronisation, Banker's algorithm, Deadlock detection
Memory, paging and virtual memory
About 5 h.
- Explain paging, the TLB and page faults
- Run LRU by hand and say why it is popular
- Explain thrashing
Visualisers: Address translation, Page replacement, Memory allocation
File systems and disks
About 2 h.
- Explain what an inode stores and how a file grows past its direct blocks
Visualisers: File systems and inodes, Disk scheduling