Processes
Kevin Kuehler
Live Q&A: on Piazza
What’s a Process?
Basic Commands
Process IO
Review: Process IO Examples
Pipes Re-imagined: IPC
The Tree of Life
supernova Process Tree (feat. Shicheng)
Signals
Orphans!
Orphan Processes
Process Priority
Background Processes (Primitive Daemons)
yes, background me senpai
yes, background me senpai
keur 30903 0.6 0.0 41468 5760 pts/4 Ss 01:58 0:00 -zsh
keur 30938 99.4 0.0 5840 704 pts/4 RN 01:59 1:28 \_ yes
keur 31013 0.0 0.0 29868 1552 pts/4 R+ 02:00 0:00 \_ ps -fu
Unix Job Control
zsh: you have running jobs.
[1] + running yes > ~/yesfile.out
Unix Job Control
More Job Control
Some Theory: Process Creation on Unix
Some Theory: Process Creation on Unix
Some Theory: Process Creation
keur 30916 0.0 0.0 4040 732 pts/17 S 17:06 0:00 \_ ./a.out
keur 30921 0.0 0.0 4288 720 pts/17 S 17:06 0:00 \_ [sh]
keur 30924 0.0 0.0 28196 1632 pts/17 R+ 17:06 0:00 \_ ps -fu
What’s a Daemon?
Cron
Minute (0 - 59)
Hour
(0 - 23)
Day of month
(1 - 31)
Month
(1 - 12)
Day of week
(0 - 6), Sunday = 0, 7
Editing Cron jobs
Cron is hard!
That’s okay! Just visit https://crontab.guru
But crontab.guru is easy!
Init System
Examples of Init Systems
Process Monitoring