Ada concurrency: tasks, protected objects and rendezvous
9 steps · about 4 h 50 min · Intermediate
- Ada95 Lovelace Tutorial Section 13.1 - Tasking Basics (tutorial, David A. Wheeler (Lovelace tutorial), 20 min)
Sets out the core vocabulary: tasks waiting for each other, rendezvous, and protected objects.
- Tasking - learn.adacore.com (interactive, AdaCore, 1 h)
The main step: runnable in-browser examples of tasks, accept/entry rendezvous, protected objects and types.
- Ada Concurrent Programming (article, Ray Toal, LMU, 30 min)
A compact second explanation that covers the rendezvous first, then protected buffers, so the ideas stick.
- Ada Tasking Explained: Tasks, Rendezvous, Protected Objects (guide, comcomponent, 30 min)
A practical walkthrough with a worker task, a producer-consumer example and a bounded buffer using barriers.
- Concurrency - learn.adacore.com (tutorial, AdaCore, 30 min)
Shows protected entries and barriers, including a binary semaphore, with comparisons to C++ and Java thinking.
- Concurrency and Real-Time - learn.adacore.com (tutorial, AdaCore, 35 min)
Moves from desktop concurrency to real-time use, and introduces Ravenscar limits such as no task entries.
- Ada Style Guide/Concurrency - Wikibooks, open books for an open world (guide, Wikibooks, 20 min)
Helps you choose between a rendezvous and a protected object, and how to handle Tasking_Error.
- Idioms for Protected Objects - learn.adacore.com (tutorial, AdaCore, 35 min)
Reusable patterns, such as a mutex built from a protected object, once the basics are comfortable.
- 5.10. Concurrency and Ravenscar Profile — SPARK User's Guide 28.0w (doc, AdaCore, 30 min)
Last step: how data races and deadlocks are ruled out statically in high-integrity code.