Concurrent computing: Difference between revisions

Updated whitespace, removed output as defined by task
m (Updated whitespace and output to match task.)
(Updated whitespace, removed output as defined by task)
Line 530:
puts(1,'\n')
end procedure
 
atom task1,task2,task3
task1 = task_create(routine_id("echo"),{"EnjoyA"})
 
task1 = task_create(routine_id("echo"),{"Enjoy"})
task_schedule(task1,1)
task2 = task_create(routine_id("echo"),{"RosettaB"})
 
task2 = task_create(routine_id("echo"),{"Rosetta"})
task_schedule(task2,1)
task3 = task_create(routine_id("echo"),{"CodeC"})
 
task3 = task_create(routine_id("echo"),{"Code"})
task_schedule(task3,1)
 
task_yield()</lang>
 
Output:
Code
Rosetta
Enjoy
 
=={{header|F_Sharp|F#}}==