GithubHelp home page GithubHelp logo

philosophers's Introduction

philosophers (Project from 42 school)

Grade: 100/100

HOW TO USE

1º - Clone the repository

git clone [email protected]:LeRandomJess/philosophers.git

2º - Enter the project folder philo and run make

cd philo
make

3º - Run the program with parameters [number_of_philosophers] [time_to_starve] [time_to_eat] [time_to_sleep] [number_of_times_to_eat]

Time arguments are in miliseconds; [number_of_times_to_eat] is an optional parameter; [number_of_philosophers] shouldn't exceed 200; [time_to_starve] [time_to_eat] and [time_to_sleep] shouldn't be lower than 60;

./philo [number_of_philosophers] [time_to_starve] [time_to_eat] [time_to_sleep] [number_of_times_to_eat]

or

./philo [number_of_philosophers] [time_to_starve] [time_to_eat] [time_to_sleep]

MAKEFILE RULES

make - Compile all files.

make all - Compile all files.

make clean - Delete all .o (object files) files.

make fclean - Delete all .o (object files) and .a (executable) files.

make re - Use rules fclean + all.

philosophers's People

Contributors

jessicacc-gd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.