Foreground processes

run()

Run external command, and wait until finishes

Background processes

process

External process

Polling

poll()

Poll for process I/O or termination