Concurrent computing: Difference between revisions

no edit summary
(→‎{{header|Erlang}}: use list comprehension and export only needed functions)
No edit summary
Line 374:
setTimeout( function(){ textbox.value += "Rosetta\n"; }, Math.random() * 1000 );
setTimeout( function(){ textbox.value += "Code\n"; }, Math.random() * 1000 );</lang>
 
 
=={{header|Mathematica 7}}==
<lang Mathematica>strings = {"Enjoy","Rosetta","Code"};
DistributeDefinitions[strings];
ParallelDo[
Pause[RandomReal[]];
Print[strings[[i]]],
{i,3}
]
)</lang>
 
 
=={{header|OCaml}}==
Anonymous user