Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 913 Bytes

exercise.md

File metadata and controls

32 lines (18 loc) · 913 Bytes
layout title parent
post
5.4 Exercise
5. Scheduling

Exercises

Cooperative Time Slicing

Implement cooperative time slicing that puts out the following serial output (using printk())

figure showing that thread_1, even though lower priority, doesn't yield to thread_2 (until finished)

serial-coop-time-slicing

Preemptive Time Slicing

Implement Preemptive time slicing that puts out the serial (using printk())

figure showing the increase in thread priority and preemption and completion of each thread

serial-preemptive-time-slicing

Time Slicing (with 3 threads)

Implement time slicing with three threads (of equal priority)

figure showing the equal priority threads preempting each other

serial-time-slicing