20-CS-4003-001 Organization of Programming Languages Fall 2017
Threads

Lambda calculus, Type theory, Formal semantics, Program analysis

All lectures
Introduction

    1.   RBC.java
Utils.java


  -   Simple use of a many threads. One thread is attached to each circle. Each circle has a home position, color, and identity. Drag a circle away from its home position and it will return to it when the mouse button is released. This version extends the Thread class.
 
    2.   RBC.java
Utils.java


  -   This version does the same thing as the version above except that it implements the Runnable interface.
 
    3.   Race.java
Race1.java
Race2.java
T1.java
T2.java
Utils.java


  -   What is all that flicker due to?
 
    4.   Co.java


  -   Round Robin scheduler