andreaulicna / 42_philosophers Goto Github PK View Code? Open in Web Editor NEW 0.0 1.0 0.0 79 KB This project is about the basics of threading a process. Makefile 4.22% C 95.78% Introduction ยท People ยท Discuss
42_Philosophers Test cases A philo should die ./philo 1 800 200 200 # shouldn't even eat ./philo 4 310 200 100 ./philo 2 310 200 100 ./philo 4 310 200 100 ./philo 2 60 60 60 Simulation should stop after each philo has eaten at least x times ./philo 5 800 200 200 7 ./philo 4 800 200 200 10 Simulation should run indefinitely ./philo 4 410 200 200 ./philo 4 800 200 200 ./philo 5 800 200 200 Check for data races, correct mutex (un)locking and leaks valgrind --tool=helgrind # add --fair-sched=yes option if hanging upon running valgrind --tool=drd # add --fair-sched=yes option if hanging upon running -fsanitize=thread # compile with
42_Philosophers Test cases A philo should die ./philo 1 800 200 200 # shouldn't even eat ./philo 4 310 200 100 ./philo 2 310 200 100 ./philo 4 310 200 100 ./philo 2 60 60 60 Simulation should stop after each philo has eaten at least x times ./philo 5 800 200 200 7 ./philo 4 800 200 200 10 Simulation should run indefinitely ./philo 4 410 200 200 ./philo 4 800 200 200 ./philo 5 800 200 200 Check for data races, correct mutex (un)locking and leaks valgrind --tool=helgrind # add --fair-sched=yes option if hanging upon running valgrind --tool=drd # add --fair-sched=yes option if hanging upon running -fsanitize=thread # compile with
Vue.js ๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
javascript JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Machine learning Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Facebook We are working to build community through open source technology. NB: members must have two-factor auth.