Dining philosophers: Difference between revisions

Content added Content deleted
(Added version using the multiprocessing library.)
m (fix code typo)
Line 6,878: Line 6,878:
# Use the following when trying to trigger a deadlock in conjunction with
# Use the following when trying to trigger a deadlock in conjunction with
# get_chopsticks0():
# get_chopsticks0():
#philosophers = generate_philosophers(philosopher_names, run_flag,
#philosophers = generate_philosophers0(philosopher_names, run_flag,
# chopsticks, [3]*max_dine,
# chopsticks, stats, [3]*max_dine,
# [5]*max_dine)
# [5]*max_dine)