Lecture: threads & switching

preparation

processes and threads

a thread implementation