Processes
#
Scope
#
- Process concept. Process models: UNIX (POSIX), MSWin (Win32).
- Diagram of process state.
- Process Control Block. Process context. Switching CPU between processes.
- Scheduling Queues. Schedulers: short-term, long-term, medium-term.
- Process creation: Models: POSIX, Win32.
- Process termination. POSIX: role of wait(), orphan, zombie.
- Run-time POSIX process environment: environment variables, 3 initial streams (stdin, stdout, stderr). The startup module (
crt0
) - POSIX process life-cycle
- Inheritance across
fork
and exec
system calls - C library function packaging of the
exec
system call. - Process ids: PID, GID, real/effective ids. setuid/setgid.
- Process groups
Reference
#
- Textbook (8th-10th ed.): chapter 3 (Process Concept, 3.1-3.4).
- Lecture presentation (PDF)
- Lecture code samples
- Section 26 of the GNU C library documentation: Processes
- Old Slides: Processes.pdf, POSIX_processes.pdf