Skip to content

Midterm 1, Section 02, Problem 3: Scheduling Policies as Traits

Midterm 1, Section 02, problem 3 of 5 · Length: 9:28 · Exercises: 07r_traits (Week 4) · Exam: Section 02 (PDF) · Answer key: Solutions (PDF)

Three parts, worked on pages 6 and 7: (a) RoundRobin's pick_next traced for five turns; (b) run_static and run_dyn: how many copies of each are compiled, and when each call is resolved; (c) a Backward policy: what goes in its two boxes, why it tests for 0 before subtracting, and four turns of it traced with the work shown. The answer key's handwriting is written onto the exam page as each step is worked.

Download the video (MP4, 16 MB) · Captions (WebVTT) · All five problems