Lecture: threads & switching

Preparation

Processes and threads

A thread implementation