Multithreaded Event Reservation
Exploring contention where threads share limited seats.
A C++ concurrency exercise simulating event availability inquiries, bookings, and cancellations across multiple worker threads.
The problem
Concurrent reservation requests share mutable seat counts. Coordinating reads, bookings, and cancellations makes synchronization choices visible.
How it comes together
Worker threads generate event queries while mutexes, condition variables, and active-query tracking coordinate access. The repository contains multiple source variants for exploring the simulation.
Follow the flow.
Simulated inquiry, booking, and cancellation requests.
POSIX threads with shared event-capacity state.
Mutex and condition-variable coordination.
A Make-based build and multiple implementation variants.
Why this approach?
Model the reservation workload as a concurrency exercise so contention and shared-state coordination can be studied directly in C++.
An educational systems simulation, rather than a deployed reservation service.