
malloc() (brk() system call) (libc)brk()는 뻥 뚫린 빈공간을 찾아 할당해줌






Process Creation (프로세스 생성)
Parent process, child process
Process identifier: PID
The init process (pid = 1)


child가 이미 끝난(죽은) 경우 : wait() 호출 시에 즉시 return 해줘야 한다.
→ OS가 child의 exit status를 가지고 있다가 delay 없이 반환해준다.
child가 아직 실행 중인 경우 : parent가 기다려야 한다.
Process invokes exit() to terminate
Parent can terminate the child processes
exit() can be called explicitly or implicitly
wait()

Zombie
Parent가 wait()을 영원히 안부른다면 어떻게 될까?