Functions
Table 1 lists the functions provided to implement a multi-threaded application.
Function | Purpose |
---|---|
pthread_create() | Create a thread |
pthread_join() | Wait for thread termination |
pthread_exit() | Terminate a thread normally |
pthread_detach() | Detach a thread |
pthread_self() | Get your thread ID |
pthread_equal() | Compare thread IDs |
pthread_once() | Run a function once per process |
pthread_yield() | Yield the processor |