Coordinate Ada tasks with protected objects
8 steps · about 4 h 40 min · Intermediate
- Create and activate Ada tasks (guide, AdaCore learning materials, 30 min)
Start with the language's task model and the lifecycle every later coordination decision must respect.
- Implement a protected queue (tutorial, AdaCore learning lab, 45 min)
Turn task entries and protected operations into a bounded producer-consumer exercise.
- Choose protected-object idioms (guide, AdaCore learning materials, 30 min)
Compare guarded entries and protected procedures before fixing the shared-state interface.
- Design the rendezvous and protected state (guide, AdaCore learning materials, 40 min)
Apply the tasking mechanisms in a worked concurrency chapter with explicit shared-data protection.
- Check the complete tasking examples (reference, AdaCore Introduction to Ada, 35 min)
Review rendezvous, selective waits and protected entries together in the full course text.
- Review task and protected-type lifecycle (reference, AdaCore Learning Ada, 30 min)
Confirm how task objects activate, terminate and interact with their enclosing master.
- Compare synchronization choices (reference, AdaCore learning materials, 30 min)
Relate rendezvous and protected objects to familiar thread synchronization while preserving Ada semantics.
- Exercise bounded concurrent behavior (reference, AdaCore learning materials, 40 min)
Finish by reviewing timing, blocking and shutdown behavior as one concurrent program.