/philo

Primary LanguageC

Philosopher Project

Overview

The Philosopher Project is an implementation of the classic dining philosophers problem in C. It simulates a scenario where a number of philosophers sit around a dining table and attempt to eat while avoiding deadlock and resource contention.

Features

Dining Philosophers Simulation: The project provides a realistic simulation of the dining philosophers problem, showcasing synchronization and resource allocation challenges.

Multithreading:

Implemented using C's pthread library for efficient multithreading to represent each philosopher as an independent thread.

Mutex Locks:

Utilizes mutex locks to ensure exclusive access to shared resources and prevent conflicts among philosophers.