Welcome to the Valix Wiki!
Thread *getCurrentThread(); Thread *spawn(String name, ThreadFunc (*func)()); void sleep(u32 milliseconds); void endThread();
spawn() is used to create new threads. New threads must be started within a new function. This is useful because the thread already has a guaranteed end point when the thread function returns, and checking PIDs is not necessary to tell the parent thread from the child thread.
sleep() will pass CPU time away from the current thread and give it to other threads. Once the sleep time is over, the thread that slept immediately gets some CPU time. The accuracy of the sleep() function is currently around 0.5ms, not counting for system clock inaccuracies.
endThread() is like exit() on unix systems; it leaves the current thread. This same function is automagically called when your thread function uses return.