Operating Systems: final assessment

This covers the whole course. Take it after the last module.

Final quiz

1. What is the main reason an OS has a user mode and a kernel mode?
2. Which system call creates a copy of the calling process?
3. Which statement about threads of one process is true?
4. Processes P1 (arrival 0, burst 6) and P2 (arrival 1, burst 2) run under FCFS. What is the waiting time of P2?
5. Which scheduler needs a time quantum?
6. Which of these can lose updates when two threads run it on a shared variable without a lock?
7. A critical-section solution must give mutual exclusion, bounded waiting and which other property?
8. Which way of handling deadlock lets it happen and then breaks it?
9. What does paging remove completely?
10. With 4096-byte pages, which page and offset does address 10000 have?
11. Which algorithm cannot be built in a real OS because it needs to know the future?
12. What is thrashing?
13. Which disk scheduler can starve a request that is far from the head?
14. Why does DMA help with large transfers?
15. A file system with 1 KB blocks and 4-byte pointers has 10 direct pointers. What is the largest file reachable with the direct and single indirect pointers?
16. A semaphore is 0 and three threads call wait. Then two signals come. How many threads are still blocked?
17. The banker's algorithm has Available (3, 3, 2) and a process with Need (1, 2, 2). What can be said?
18. Pages 1 2 3 1 4 are used with 3 frames and FIFO. How many page faults happen?
19. A path /a/b/c is resolved and b is a regular file. What does the kernel report?
20. A file has two hard links and one of them is removed with rm. What happens to the file?

Practical assessment: A memory and scheduling report

Without using hints, write a C program that reads one list of processes and one page reference string, and reports how the main OS algorithms perform on them.

Final project

A CPU scheduling lab: Build a program that reads a list of processes and reports how FCFS, SJF, SRTF and round robin schedule them, so that you can choose a scheduler for a given workload with numbers.

How it is evaluated

To complete this course