Dining philosophers: Difference between revisions
Content added Content deleted
StatusAimSky (talk | contribs) (Added version using the multiprocessing library.) |
StatusAimSky (talk | contribs) 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 = |
#philosophers = generate_philosophers0(philosopher_names, run_flag, |
||
# chopsticks, [3]*max_dine, |
# chopsticks, stats, [3]*max_dine, |
||
# [5]*max_dine) |
# [5]*max_dine) |
||