Module: Locks

Learning Outcomes

Thread Synchronization

Readings

Locks: Principle

How to use locks to achieve thread safety

Locks: Implementation

How locks are implemented in practice

Locks in Java

How Java provides the lock abstraction

Experiential Learning

Homework Assignment #3

A short pencil-and-paper assignment in which you have to reason about locks and think about what it means to write thread-safe code

Homework Assignment #4

An assignment in which you add another set of features to our JavaFX app

Assessments

Homework #3 Assessment

Outcome(s) assessed: Thread Synchronization

Homework #4 Assessment

Outcome(s) assessed: Thread Synchronization