Camille Chauvet
|
550851a5c8
|
Merge branch 'master' of git.chauvet.pro:starnakin/42_Philosopher
|
2023-05-24 13:55:43 +00:00 |
|
Camille Chauvet
|
0956af87ca
|
fix: data race
|
2023-05-24 15:55:19 +02:00 |
|
Camille Chauvet
|
7e5d4af478
|
fix: support only > 0 number
|
2023-05-17 13:44:38 +02:00 |
|
Camille Chauvet
|
008b30e12c
|
fix: add 0 to the print
|
2023-05-17 13:37:20 +02:00 |
|
Camille Chauvet
|
aefb6ceec0
|
bozosujet
|
2023-05-17 13:28:42 +02:00 |
|
Camille Chauvet
|
8371b01390
|
clean: remove compile file
|
2023-05-17 13:26:16 +02:00 |
|
Camille Chauvet
|
3e9f5e829f
|
fix: replace write by printf
|
2023-05-17 13:25:34 +02:00 |
|
Camille Chauvet
|
958448ca4e
|
finish2
|
2023-05-16 11:26:03 +00:00 |
|
Camille Chauvet
|
291c7b40b1
|
finish
|
2023-05-16 11:25:20 +00:00 |
|
Camille Chauvet
|
b940b46924
|
?fix
|
2023-05-05 16:59:36 +00:00 |
|
Camille Chauvet
|
5c309f2f02
|
fix: sleeptime and eat time if time to die < time eat|sleep
|
2023-05-02 11:44:16 +00:00 |
|
Camille Chauvet
|
796e186c36
|
clean: norm
|
2023-04-27 12:05:14 +00:00 |
|
Camille Chauvet
|
7e7538aa40
|
fix: do not print message exit eating
|
2023-04-25 15:10:25 +00:00 |
|
Camille Chauvet
|
41bd1149d8
|
fix: time mix
|
2023-04-25 15:01:54 +00:00 |
|
Camille Chauvet
|
69e34424c1
|
fix: philo alone died now
|
2023-04-25 14:56:57 +00:00 |
|
Camille Chauvet
|
02a80af93b
|
fix: stop when nb_meal is reached
|
2023-04-25 14:50:01 +00:00 |
|
Camille Chauvet
|
891431c1be
|
fix: work with odd numbers of philos
|
2023-04-25 14:39:07 +00:00 |
|
Camille Chauvet
|
d6aee63600
|
fix
|
2023-04-25 14:33:35 +00:00 |
|
Camille Chauvet
|
07d4cd05c1
|
core: transition from bool[] to mutex[] for the fork tab
|
2023-04-25 14:32:42 +00:00 |
|
Camille Chauvet
|
4f138b78e3
|
clean: remove useless file
|
2023-04-25 14:31:12 +00:00 |
|
Camille Chauvet
|
6759520714
|
transition from printf to write
|
2023-04-25 14:30:21 +00:00 |
|
Camille Chauvet
|
531d3146e4
|
merge
|
2023-04-25 11:30:55 +00:00 |
|
|
f51039c735
|
?fix: initialise all value
|
2023-04-20 18:27:12 +02:00 |
|
Camille Chauvet
|
b553e5af97
|
fix: stop when philo has enough eat
|
2023-04-20 13:16:02 +00:00 |
|
Camille Chauvet
|
26e9f21238
|
fix print mutex is now destroyed at the end
|
2023-04-20 12:40:30 +00:00 |
|
Camille Chauvet
|
32d881a7d2
|
fix: stop when philo has enough eat
|
2023-04-20 12:39:01 +00:00 |
|
Camille Chauvet
|
caa4491fbb
|
fix: add verif for sleeping and not only for eating
|
2023-04-20 12:21:03 +00:00 |
|
Camille Chauvet
|
19c5a53ba9
|
fix: end when philo died and not when philo stop eatind or sleep example 'philo 2 100 5 10000'
|
2023-04-20 12:20:22 +00:00 |
|
Camille Chauvet
|
cb2e29d18b
|
prepare to add a verif thread
|
2023-04-19 14:51:01 +00:00 |
|
Camille Chauvet
|
0ae80bdcca
|
fix: helgreind
|
2023-04-19 14:49:48 +00:00 |
|
Camille Chauvet
|
e7a85b4d9d
|
change display id '1' -> '001'
|
2023-04-19 14:49:03 +00:00 |
|
Camille Chauvet
|
1461285dbf
|
fix: add pthread flag to compile and link
|
2023-04-19 14:09:01 +00:00 |
|
Camille Chauvet
|
7e77316d53
|
add: time is now relatif
|
2023-04-19 14:08:23 +00:00 |
|
Camille Chauvet
|
6148d6effe
|
change: 'is dead' -> 'dead' and ' 10' -> '000000010'
|
2023-04-19 14:06:03 +00:00 |
|
Camille Chauvet
|
9281e9f508
|
fix: stop when philo dead
|
2023-04-19 14:02:44 +00:00 |
|
Camille Chauvet
|
c674f68b2e
|
fix: check if all threads is stopped before destroye data
|
2023-04-19 14:01:59 +00:00 |
|
Camille Chauvet
|
07a72c7f89
|
fix: parsing return error only if nb philo == 0
|
2023-04-19 13:58:18 +00:00 |
|
Camille Chauvet
|
23e8774c44
|
fix: check argument overflow
|
2023-04-19 13:51:57 +00:00 |
|
Camille Chauvet
|
f19a96a233
|
fix: parsing check nb philos > 0
|
2023-04-19 13:51:35 +00:00 |
|
Camille Chauvet
|
622c2bf226
|
fix: lock mutex
|
2023-04-19 11:59:37 +00:00 |
|
Camille Chauvet
|
4e27d103a8
|
fix: I create now 1 thread by philo
|
2023-04-19 11:53:50 +00:00 |
|
Camille Chauvet
|
a37cbf88f3
|
init
|
2023-04-13 13:00:39 +00:00 |
|