RosettaCodeData/Task/Fork/Phix/fork-1.phix

9 lines
167 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
procedure mythread()
?"mythread"
exit_thread(0)
end procedure
atom hThread = create_thread(routine_id("mythread"),{})
?"main carries on"
wait_thread(hThread)