Operating Systems exercises with solutions

42 practice problems from the 14 lessons of the Operating Systems course, in lesson order and from easy to hard inside each lesson. Open a problem, write your code and press Submit: the tests run in your browser and nothing is sent to a server.

14 easy problems 14 medium problems 14 hard problems

What an operating system does

3 problems · Read the lesson

Processes

3 problems · Read the lesson

Threads and race conditions

3 problems · Read the lesson

CPU scheduling: FCFS and SJF

3 problems · Read the lesson

Round robin, SRTF and priority

3 problems · Read the lesson

Synchronization: locks and semaphores

3 problems · Read the lesson

Deadlock

3 problems · Read the lesson

Memory: addresses and allocation

3 problems · Read the lesson

Paging

3 problems · Read the lesson

Virtual memory and page replacement

3 problems · Read the lesson

Input, output and interrupts

3 problems · Read the lesson

Disks and disk scheduling

3 problems · Read the lesson

File systems

3 problems · Read the lesson

Inodes, directories and links

3 problems · Read the lesson