Concurrent computing: Difference between revisions
Content added Content deleted
m (→{{header|Pascal}}: must be interlocked inc/decrement tse tse tse) |
(Corrected syntax to compile with Nim 1.4) |
||
Line 1,306: | Line 1,306: | ||
const str = ["Enjoy", "Rosetta", "Code"] |
const str = ["Enjoy", "Rosetta", "Code"] |
||
proc f(i) {.thread.} = |
proc f(i: int) {.thread.} = |
||
echo str[i] |
echo str[i] |
||