sairutra / philosophers

threading and mutexes
0 stars 0 forks source link

"eating to long" when limiting meals - ./build/bin/philo 9 310 100 100 6 > out #4

Open Chr-ss opened 2 months ago

Chr-ss commented 2 months ago

image

I think you stop the simulation per philo when one of them has enough meals. If you can defend it, it's good. I let them keep eating until all are done. Some might have more than the required meals but that didn't matter, subjetcs says, everyone must at least have X meals.

Theoretically time to eat is a set time and should not be of by more then 10ms here it took 2x image

sairutra commented 2 months ago

philos also dying here