Philosophers

Overview

Implemented the classic dining philosophers concurrency problem using POSIX threads and mutexes. Designed a deadlock-free solution ensuring no philosopher starves while managing shared resources. Focused on precise timing, race condition prevention, and clean thread lifecycle management.

Key Features

  • Thread-safe resource sharing
  • Deadlock prevention strategy
  • Precise timing with usleep
  • Race condition handling
  • Clean thread lifecycle management
CategoryLow Level (C/C++)
RoleIndividual project
Tech StackC, Pthreads, Mutexes, Concurrency
Source CodeView on GitHub