Anonymous user
Concurrent computing: Difference between revisions
m
Updated code to match task, removed output as defined by task.
m (Updated code to match task, removed output as defined by task.) |
m (Updated code to match task, removed output as defined by task.) |
||
Line 1,295:
Using POSIX threads:
<lang Pike>int main() {
({
}) -> wait();
▲ Thread.Thread(write, "Code\n")
}</lang>
Using Pike's backend:
<lang Pike>int main(int argc, array argv) {
call_out(write, random(1.0), "
call_out(write, random(1.0), "
▲ call_out(write, random(1.0), "Code\n");
call_out(exit, 1, 0);
return -1;
}</lang>
=={{header|PowerShell}}==
|