Jump to content

Dining philosophers: Difference between revisions

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

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.