Task

Spawn a new process which can run simultaneously with, and independently of, the original parent process.




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