Return -1 if error otherwise return 0. User programs should use these functions. The new thread starts by sending the given selector with a single argument to the given object. It is up to the system scheduler to determine if the processor is taken or not. If this is the last thread executing then the program will terminate.
Local storage is thread specific.
Return -1 if error otherwise return 0. Return -1 if error otherwise return the priority. Return -1 if error otherwise function does not return. Mutexes can be locked recursively. The last unlock on a mutex removes the system lock and allows other threads to access the mutex.