RosettaCodeData/Task/Fork/Phix/fork-1.phix
2016-12-05 23:44:36 +01:00

8 lines
167 B
Text

procedure mythread()
?"mythread"
exit_thread(0)
end procedure
atom hThread = create_thread(routine_id("mythread"),{})
?"main carries on"
wait_thread(hThread)