10. Review#
10.1. Common Scheduling System Calls#
Function |
Reference |
Brief Description |
---|---|---|
fork() |
Clone the current process |
|
exit() |
Terminate the calling process |
|
waitpid() |
Wait for child process |
|
kill |
man 1 kill |
Terminate a specified process |
pthread_create() |
man 3 pthread_create |
Create a new thread in calling process |
pthread_self() |
man 3 pthread_self |
Return calling thread’s ID |
pthread_join() |
man 3 pthread_join |
Wait for specified thread to finish |
pthread_exit() |
man 3 pthread_exit |
Terminate the calling thread |
pthread_kill() |
man 2 pthread_kill |
Send a signal to a thread |