← All projects
Systems & concurrency · 2026

panoramix

The classic producer–consumer problem, Asterix style: villagers keep drinking from a shared pot of magic potion while the druid refills it, and nobody may drink from an empty pot or refill a full one. Solved with threads, a mutex and semaphores, and tested across many configurations to rule out deadlocks.

CpthreadsPOSIX semaphores
Team
Solo
Context
Epitech project, 2nd year
Status
Done
Druid and villagers sharing the potion pot
Druid and villagers sharing the potion pot