Lecture 08

Lecture 8 and its associated code examples are now available on the Lectures page. Note: I didn't explicitly cover this example code during lecture. The code provided is a simplified version of the Java applet that I did cover, written in the style of the code examples released for Lecture 7. They demonstrate two threads accessing a shared variable. In one program, the variable is unprotected and interference occurs. In the other, the variable is protected by a synchronized method and the interference is eliminated.

Be sure to look at these code examples... run them and make sure you understand them, and how they relate to the FSP models covered in lecture.

© Kenneth M. Anderson, 2008.