Skip to content

The goal of this project was to learn to avoid deadlock and race conditions when creating multithreaded applications.

Notifications You must be signed in to change notification settings

Ekkoz897/42cursus_Philosophers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

42cursus_Philosophers

Basics of process threading, and how work on the same memory space.


Philosophers an individual project at 42 about introduction to the basics of process threading, and how work on the same memory space. And learn about mutexes, semaphores, and shared memory.

Introduction

In computer science, the dining philosophers problem is an example problem often used in concurrent algorithm design to illustrate synchronization issues and techniques for resolving them.

It was originally formulated in 1965 by Edsger Dijkstra as a student exam exercise, presented in terms of computers competing for access to tape drive peripherals. Soon after, Tony Hoare gave the problem its present formulation

More informations

Installation 🖥

To test the project, clone the repository and then run the command make. Then, you can test the project using the executable.

usage :

./philo number_philosopher time_to_die time_to_eat time_to_sleep [number_of_time_each_philosophers_must_eat] arguments in square brackets are not required (number_of_time_each_philosophers_must_eat)

example :

./philo_one 4 500 200 200

About

The goal of this project was to learn to avoid deadlock and race conditions when creating multithreaded applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published