July 21, 2022, 4:21 a.m. | Federico Rosato

Towards Data Science - Medium towardsdatascience.com

Simulating Dining Philosophers with Simpy

Explore race conditions, deadlock, and shared resources in Python

Photo by Marisa Harris on Unsplash

The dining philosophers problem is a problem in computer science, and specifically in concurrent systems. Originally invented by Edsger Dijkstra as an exam question, it soon assumed the current form and became a classic. It can be regarded as a toy problem, but it effectively showcases the fundamental conundrum of resource contention. Today we will use it as a …

dining-philosophers python race-condition simpy synchronization

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne