CSC139 Operating Systems Lecture 10 Deadlock (cont’d) Thread Scheduling Adapted from Prof. John Kubiatowicz's lecture notes for CS162 cs162.