Week 8

  • Java case study (starter code for Assign 4)
    • this version deadlocks!
    • you will use two different approaches to fix:
      • synchronized methods
      • synchronized code blocks

  • Obscure Java
    • shortest compilable Java program?
      • does it run?
      • what's it good for?
    • inner classes
      • what are they?
      • what are they good for?
      • what do they look like when compiled?
    • what does any of this have to do with the assignment?

  • Assign 4
    • due: Tue, Mar 31, 11:59pm

  • Peter Welch's slides introducing CSP and occam-pi (but we will use Go this semester!)
    • today:
      • Objects Considered Harmful (slide 27 of motivation.pdf slides)
      • even though we won't be programming in occam-pi, I want to give you a flavor of it
      • because:
        • ultimate lightweight processes!
        • composition!
      • Legoland: slide 83-end of basics.pdf