Lesson 24: The Process of Multitasking
Outline:
- File descriptors
- basics
- redirection
- examples:
files.candredirect.c
- Processes
- Unix process model abstraction
- syscalls, context switches, and scheduling
- a note on terminology
fork,wait, andexit- example:
forktest.c
Explore after class:
- Lab 8: Getting started with processes
- Shell-related example code
- using
exec:exectest.c - a really simple shell:
shell208.c stdin/stdoutredirection:redirect.c- working with pipes:
pipe.c - working with signals:
signaltest.c
- using
Want more practice with fork?
Reading assignment (to be completed by the next class):
- Assignment 9 – think of it as putting together a puzzle to build your shell :)
- File systems and redirection:
- Processes and inter-process communication:
Additional exploration:
- Manual pages (e.g., type
man <cmd>, replacing<cmd>, in a terminal) for:forkwaitexeclpexecvpsignal