CSC 357 Lecture Notes Week 10
Introduction to Threads
| Process Primitive | Thread | Description | 
| fork | pthread_create | create a new flow of control | 
| exit | pthread_exit | exit from an existing flow of control | 
| waitpid | pthread_join | get exit status from flow of control | 
| atexit | pthread_cleanup_push | register function to be called at exit from flow of control | 
| getpid | pthread_self | get ID for flow of control | 
| abort | pthread_cancel | request abnormal termination for flow of control |