lab4 Process
  • Introduction
  • Knowing about process
    • Checking System Process
    • Process Identification
  • Let's Fork! Process Creation
    • Background of Process Creation
    • fork system call
    • Distinguish Parent and Child Process
    • Exercises
  • Process Execution
    • First exec example
    • Environment Variables
    • exec Family
    • exec Family: execlp
    • exec Family: execle
    • exec Family: execv
    • exec Family: execvp
    • exec Family: execve
    • exec error handling
  • Wait!
    • Problem 1: Without Wait?
    • Sleep
    • Problem 2: Zombies!
    • Wait System Call
    • waitpid
Powered by GitBook
On this page

Was this helpful?

Wait!

After we learnt about running other program using exec, you may find one problem: the parent died before the child. We would like to suspend the parent and wake it after the child is terminated.

In this section, you will learn:

  1. wait system call

  2. waitpid system call

Previousexec error handlingNextProblem 1: Without Wait?

Last updated 4 months ago

Was this helpful?