Skip to content

akchay/Semaphore-Dining-Philosopher

Repository files navigation

Dijkstra's solution using semaphores: Assign a semaphore to each chopstick, representing its availability. Philosophers must acquire both chopsticks by locking their corresponding semaphores. If a philosopher cannot acquire both chopsticks, they release the acquired chopstick and wait before trying again.

Screenshot 2024-04-18 at 8 27 32 PM

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published