Dining philosophers: Difference between revisions
m
→{{header|Wren}}: Changed to Wren S/H
StatusAimSky (talk | contribs) m (fix code typo) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 8,105:
However, Wren uses co-operatively scheduled fibers rather than threads for concurrency and, as long as a philosoper waits until he can pick up both forks to eat, deadlock is impossible because only one fiber can run at a time.
<syntaxhighlight lang="
import "scheduler" for Scheduler
import "timer" for Timer
|