CS 101 Lecture 34 - Linked Lists II, Concurrency

Class Examples:

  1. Counting the number of occurences in a linked list

    Click on LinkedList2 to show the example.

  2. An applet that demos multiple threads

    Click on Bubbles to show the example.

  3. A demo of interference (two threads accessing the same variable)

    Click on ATM1 to show the example.

  4. An unsuccessful attempt to avoid interference

    Click on ATM2 to show the example.

  5. A successful attempt using "synchronized"

    Click on ATM3 to show the example.

  6. A diagram illustrating the states of threads in Java.