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
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