CS 3733 Operating Systems
Lecture 3 [9/3/97]: Process Control
Reading: Section 2.6, 2.7, 2.8 and 2.9 of PUP
- The
wait
and waitpid
system calls
- Prototype
- Return status
- Look at Program 2.5 and Exercise 2.3.
- Waiting for a particular child rather than any child (Example 2.10).
- Zombies.
- The
exec
system call
- Different forms of
exec
- Argument arrays.
- Look at Program 2.8.
- What happens when the call to
makeargv
is moved
before the fork
?
- Attributes that preserved after
exec
.
- Background processes and daemons
- The process environment
- Process termination and exit status
SKILL: Understand process termination and consequences of wait
Revision Date: 9/5/97