Skip to content

Clearsu/42_philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Introduction

Simulation of dining philosophers problem

image

How to run

  • cd philo
  • make all
  • ./philo [n] [limit] [eat duration] [sleep duration] [eat reps(optional)]
    • n: number of philosophers
    • limit: The amount of time one can endure without eating
    • eat duration: The amount of time spent on eating
    • sleep duration: The amount of time spent on sleeping
    • eat reps: Number of meals; the simulation ends when all philosophers have eaten at least this many times

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published