Checkpoint synchronization: Difference between revisions

Content deleted Content added
Thundergnat (talk | contribs)
m Automated syntax highlighting fixup (second round - minor fixes)
PureFox (talk | contribs)
m →‎{{header|Wren}}: Minor tidy
 
Line 3,462:
{{trans|Kotlin}}
{{libheader|Wren-ioutil}}
<syntaxhighlight lang="ecmascriptwren">import "random" for Random
import "scheduler" for Scheduler
import "timer" for Timer
import "./ioutil" for Input
 
var rgen = Random.new()
Line 3,546:
Worker 5 is ready.
</pre>
 
=={{header|zkl}}==
Simulate a pool of workers, each making one part, waiting for the part to be requested and then putting the part on a conveyor belt to be sent to the station that assembles all parts into a product. After shipping the part, it turns off the request flag.