SME
College · Engineering
Operating Systems
4 topics
Computer
Before this course
Topics
Processes and threads
Main lesson
Cost of a context switch
Use this for “The time slice is 10 ms and a context switch takes 0.1 ms. What share of the CPU time does useful work?”
Processes after n forks
Use this for “A program calls fork() 3 times in a row. How many processes are there at the end, and how many are children?”
CPU use with I/O waits
Use this for “Each process waits for I/O 80% of the time. With 4 processes in memory, how busy is the CPU?”
Scheduling
Memory management
Main lesson
Effective access time with a TLB
Use this for “A TLB lookup takes 10 ns, memory takes 100 ns, and 90% of lookups hit. What is the effective access time?”
Effective access time with page faults
Use this for “Memory takes 100 ns, a page fault takes 8 ms to service, and 1 access in 100 000 faults. What is the effective access time?”
Page replacement: FIFO and LRU
Use this for “Pages are referenced 1, 3, 1, 2, 4, 3, 1, 4 with 3 frames, all empty at the start. How many page faults does FIFO make, and LRU?”
File systems
Main lesson
Disk access time
Use this for “A disk seeks in 9 ms and spins at 7200 rpm. How long does reading 4 KiB at 100 MB/s take?”
Blocks and wasted space
Use this for “A 10,000-byte file is stored in 4096-byte blocks. How many blocks does it use, and how many bytes are wasted?”
Which allocation method?
Use this for “Each block holds the address of the next one. Which allocation method is it?”
Course test
See what you know: 10 questions on this course
New questions each time. Pass to mark it complete.