CP: Concurrency: State Models and Design Patterns

dining.png

Course: 21005 (Autumn Semester 2015)
Lecturer:Prof. Oscar Nierstrasz
Assistants:TBA
Lecture:Wednesday, 10h15 - 12h00
Exercises:Wednesday, 12h00 - 12h45
Place:Engehaldenstrasse 8, 001
Start:2015-09-16
Repetition:Autumn 2015

Description

This course provides an introduction to concurrent programming with Java. The course focuses on fundamental concepts important for developing correctly functioning concurrent programs, such as safety, liveness and fairness, and on standard programming patterns and techniques for dealing with these issues. The course will include two lab sessions (replacing the regular lecture hours) in which students will work in small groups to apply the techniques presented.

Much of the practical material in this lecture will be based on: Doug Lea, Concurrent Programming in Java: Design Principles and Patterns, Addison-Wesley, 1999. The theoretical foundations will be based on: Jeff Magee and Jeffrey Kramer, Concurrency: State Models & Java Programs, John Wiley, 1999.

Learning Outcomes

On successful completion of this course, you will be able to:

  • Reason about safety, liveness and fairness in concurrent programs
  • Use model-checking tools to prove safety and liveness properties
  • Use synchronization mechanisms to guarantee thread safety in programs
  • Reason about communication mechanisms to manage threads
  • Use practical techniques to avoid deadlock and ensure liveness
  • Reason about architectural styles to avoid concurrency issues

Grading

The final grade in the course will be based 20% on exercises and 80% on the final exam.

Course Schedule (2012 — TO BE UPDATED)

  • Exercises rules are here
1 19/Sep/12 Introduction Assignment1
2 26/Sep/12 Java and Concurrency Assignment2
3 3/Oct/12 Safety and Synchronization Assignment3
4 10/Oct/12 Safety Patterns + Transactional Memory Assignment4
5 17/Oct/12 Liveness and Guarded Methods Assignment5
6 24/Oct/12 Lab session (ExWi Pool)
7 31/Oct/12 Liveness and Asynchrony Assignment7
8 7/Nov/12 Condition Objects Assignment8
9 14/Nov/12 Fairness and Optimism Assignment9
10 21/Nov/12 Lab session (ExWi Pool)
11 28/Nov/12 Petri Nets Assignment10
12 5/Dec/12 Parallelism
13 12/Dec/12 Architectural Styles for Concurrency
14 19/Dec/12 Exam
Last changed by oscar on 8 June 2015