- Create a new thread
Return value: 0 if successful. Error code from
Notes: Use a structure to pass multiple arguments to the start routine.
- Wait for a thread to terminate
Return value: 0 for success. Error code from
Notes: Once a thread is joined, the thread no longer exists, its thread ID is no longer valid, and it cannot be joined with any other thread.
- Get my own thread ID
Return value: The ID of the thread that called this function.