(cf) System call
fork() system call: 새로운 프로세스를 생성 할 때 사용
wait() system call: 자식 프로세스가 끝날때 까지 기다릴 때 사용
getpid() system call: 현재 프로세스의 id 를 가져옴
getppid() system call: 부모 프로세스의 id(parent pid) 를 가져옴
-Asynchronous cancellation (비동기 취소) : terminate thread immediately / 취소 요청시 즉시 처리 시도
-Deferred cancellation(지연 취소) : allows the target thread to periodically check if it should be cancelled. /
target thread가 주기적으로 자신이 강제 종료되어야 할지를 체크함
Two types of Signals
-synchronous signal(illegal memory access, division by 0)
-asynchronous signal(ctrl+c, timer expire)