[CS-453] Concurrent Algorithms
2019, autumn semester. Master course.
This course is independent from the course Distributed Algorithms.
|Prerequisites||ICC, Operating Systems|
Project repository: https://github.com/LPD-EPFL/CS453-2019-project
Notes on the project:
- 40% of the final grade.
- Prior knowledge of C and/or C++ is assumed. Only the memory model of C11/C++11 will be briefly presented.
- Only Ubuntu and Debian distributions, with reasonably recent GCC/clang, are supported troubleshooting-wise. You can use any other OS or compiler for your local developments, but be aware the TAs may not be able to help you.
- Automated submission system with unlimited submissions allowed until the deadline (only the best submission is considered for grading). The specs of the evaluation machine are available in the project repository.
Interested in a PhD? Look here: Everything You Always Wanted to Know About the PhD But Were Afraid to Ask
- [16.19.2019] There will be a midterm on December 9, 8:15-10:00 in the usual lecture room (INM 202). The midterm will not be graded.
- [15.10.2019] Added slides “Software Transactional Memory”.
- [08.10.2019] Typo corrected in slide 7 of project's mini-lecture “Atomic primitives”.
- [24.09.2019] Slide 12 in “Memory ordering” has been updated (for clarity, following feedbacks).
- [23.09.2019] There will be no exercise session on Tuesday 24.09.2019.
- [19.09.2019] Sébastien Rouault's office hours have been changed for Wednesday (morning).
- [02.09.2019] Since there is no course lecture on the first Monday (Jeûne fédéral), both the project and exercise sessions on the first Tuesday (2019/09/17) are cancelled.
- [02.09.2019] The project repository will be made available just before the first project session (2019/09/24).
Dates and schedule
|Course lectures||Monday 8:15-10:00||INM 202|
|Project sessions||Tuesday 13:15-15:00||SG 0211|
|Exercise sessions||Tuesday 15:15-16:00||SG 0211|
|Midterm exam (not graded)||December 9, 8:15-10:00||INM 202|
|Project deadline||December 20, 23:59:59||N/A|
- Assistants (Exercises):
- Assistants (Project):
Slides and exercises
|Introduction||pdf (2019)||No exercise session|
|Registers||pdf (2019)||ex1 (solution: pdf)|
|The Power of Registers||pdf (2019)||ex2 (solution: pdf) ex3 (solution: pdf)|
|The Limitations of Registers||pdf (2019)||ex4|
|Universal Constructions||pdf (2018)|
|Implementing Consensus with Timing Assumptions||pdf (2018)|
|Faulty Base Registers, Anonymous Processes, Hierarchy||pdf pdf pdf (2018)|
|Transactional Memory||pdf (2018)|
|Concurrent Programming: from Theory to Practice||pdf (2018)|
|Software Transactional Memory|
Information on exercises, grading, and exam
- Exercises are made available on the course webpage.
- Exercises are not graded and do not count towards the final grade. However, solving the exercises will help you prepare for the final exam.
- Solutions to the exercises will be available on the course webpage one week after the exercises were given.
- The project consists in implementing a Software Transactional Memory (STM).
- There is one single deadline at the very end of the course; but start as early as possible.
- The final exam and the midterm will be written and without books or any other material. Only the final exam is graded, the midterm is for training purposes only.
Exams from previous years
- An overview paper on transactional memory pdf
- Registers, Ivan Kviatkevitch pdf
- Writing while reading and Tromp's algorithm, Laurent Bindschaedler pdf
- Consensus with timing assumptions, Utkarsh Upadhyay pdf
- Computing with anonymous processes, Shabnam Ataee pdf
- Object Implementation out of faulty base objects, Shabnam Ataee pdf
- Set Agreement, Mihailo Velimirovic pdf
- The Power and Limitations of Registers, Ruben Braojos pdf
- Maurice Herlihy and Nir Shavit The Art of Multiprocessor Programming, Revised Reprint Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 2012, ISBN-10 0123973376.
- Hagit Attiya and Jennifer Welch Distributed Computing: Fundamentals, Simulations, and Advanced Topics. John Wiley and Sons, Inc., ISBN 0-471-45324-2.
- Herlihy, M. P. Wait-free synchronization. ACM Transactions on Programming Languages and Systems, 13(1):124–149, January 1991.
- Herlihy, M. P., and Wing, J. M. Linearizability: a Correctness Condition for Concurrent Objects. ACM Transactions on Programming Languages and Systems, 12, 3 (1990), 463-492.
- Jayanti, P., Wait-free computing. In Proceedings of the 9th International Workshop on Distributed Algorithms (WDAG'95), Vol. 972 of LNCS, Springer Verlag, 1995, pp. 19–50. (on-line version not available)
- Lamport, L. On Interprocess Communication−Part I: Basic Formalism, Part II: Algorithms. Distributed Computing, 1, 2 (1986), 77–101.
- Damien Imbs, Michel Raynal. Visiting Gafni's Reduction Land: from the BG Simulation to the Extended BG Simulation. Research Report PI 1931, 2009, pp.12.
- Armando Casta~neda, Sergio Rajsbaum, Michel Raynal. The Renaming Problem in Shared Memory Systems: an Introduction . Research Report PI-1960, 2010, pp.29.