Atomic updates: Difference between revisions
m
→{{header|Wren}}: Minor tidy
(Initial FutureBasic task solution added) |
m (→{{header|Wren}}: Minor tidy) |
||
(One intermediate revision by one other user not shown) | |||
Line 1,552:
{{output}}
<pre>
Initial array: [
Current values: [
19 from 3 to 5: [
</pre>
=={{header|Go}}==
Line 4,023 ⟶ 4,018:
Fibers are cooperatively (rather than preemptively) scheduled and only one fiber can run at a time. Consequently, simultaneous operations are impossible and all operations are therefore atomic by their nature.
<syntaxhighlight lang="
import "scheduler" for Scheduler
import "timer" for Timer
import "./math" for Nums
var Rnd = Random.new()
|