philosophers's People
philosophers's Issues
Norminette
cleanup philo mutex
philo function outside main
timestamp get: static tv_start
opti: should survive [105 800 200 200]
check when ttl < tte + tts (should die)
stops after max meals
Understand semaphores
Useful links:
- https://pages.cs.wisc.edu/~remzi/OSTEP/threads-sema.pdf
give each philo access to philo_count
Test: [5 800 200 200] | no one should die
make sure both forks are printed released before another takes them
create a thread per philosopher
make sure philosophers don't keep only one fork
handle philosopher's death
fix when only one philosopher
fix possible philo lock on start (each take one fork)
delete f_ms_sleep
parsing errors: wrong ac
alternate start
lock stderr instead of stdout for errors
5 600 150 150: no one should die
Rename big-shell to mjacq for next projects
remove tests
fix last commit (pthread mutex destroy on locked mutex)
Philos need forks
ERROR: ThreadSanitizer: SEGV on unknown address 0x000000000000
Cannot use -fsantize=thread (linux dump 42 at least).
Seems to be the following issue: google/sanitizers#1195
name program philo
eat sleep and think using param time
Stop exactly when every philosopher had max_meals
give philo id in philos_init
fix leaks (init + destroy functions)
fix wrong order prints
check pthread_create, gettimeofday and pthread_mutex_[un]lock return values
print only one death
safe ft_puterr
print death when philo dies
remove libft
philo get time
clean code
Eat - Sleep with timestamp
each philo print it's tid
fix helgrind errors
find a tester
anticipate required structures
fix run tests failed
init philo array and data
see if all activity variables could be atomic volatile
Parsing: nb_philo tt_die tt_eat tt_sleep [max_meals]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.