Software Intro · Lesson 1 · On the house

Programs and processes

A program on disk becomes a process when it runs. Lesson 1 is free — on the house.

Lessons · Software Intro · Lesson 1 of 10 · On the house

Programs and processes

A program on disk becomes a process when it runs.

Illustration for Software
Lesson 1 is on the house.

A program is the file on disk (or the install package) — the instructions. A process is one running instance of that program: memory, open files, and a process id (PID) the OS tracks until it exits.

Starting a program creates a process. Closing the window, quitting the app, or sending a stop signal ends that process. The program file stays on disk; only the running instance goes away.

One program can have many processes (ten browser tabs' helper processes, several python jobs). Operators ask "is it running?" about processes, not about whether the install folder still exists.

In a shell you often start a process by typing its command name. Later lessons cover finding and stopping processes; here the skill is naming the difference: install ≠ running, file ≠ PID.

Misses: thinking deleting the app while it runs always frees the PID instantly on every OS, or assuming two windows means two different programs when they are two processes of the same program.

programs-processes

# program on disk vs process in memory
# start → new process (gets a PID)
# quit / kill → process ends; program file remains
ps  # list processes (names + PIDs) on many Unix shells
# Task Manager / Activity Monitor show the same idea on GUIs
Match this when you type.

Quiz

What is a process?

Quiz

What stays after you quit an app?

Quiz

Can one program have many processes?

Quiz

What does starting a program create?

Check

Match the still for: Programs and processes.

Open-book: the answers are on this page. Pass every quiz and check (5) to mark the lesson done. This visit: 0/5.