Lesson 2 of 6
What is running when you open the note?
Open the Saturday note and it appears in a window. Between the click and the window, a stored set of instructions started running. This lesson separates the stored program from the running program, and both from the screen you see and the computer doing the work, because later modules depend on those distinctions.
Numbered links identify sources. Underlined terms offer a definition without leaving the lesson.
A program is stored instructions; a process is those instructions running
Module 1 defined software as a set of instructions a computer carries out. A is such a set of instructions stored so that it can be run: a text editor, a spreadsheet or a chat application. Stored, a program is itself a file or a group of files. It does nothing until the computer starts running it.
When it runs, the computer creates a : a running instance of the program, with its own working memory, the files it has opened and the identity it runs under. Microsoft's documentation for its operating system describes a process as what provides the executing program with resources such as memory, open objects and a security context. The details there are specific to that system, but the idea of a running instance with its own resources is general. 2 One stored program can be running as several processes at once, for example two separate instances of the same editor showing two different notes. Separate processes do not automatically share every change. Software can deliberately pass information between them or arrange shared memory. 12 In our authored editor example, the two processes do neither, and automatic saving is off. To pass an edit between them, we save the file in one and read that file again in the other.
The process is where input turns into output. Take the editor opening the Saturday note. Its input is the file's contents, read from storage into the process's memory. Its instructions turn that text into shapes on the screen and wait for keystrokes. Its output, for now, is the display. Typing changes the text in the process's memory. In this example, nothing has yet changed in the file. Holding that gap in mind is the point of the next lesson.
A process need not have a window
The window is how a process shows itself to a person. It is not the process. Many processes run without any window: a program that checks for new mail every few minutes, a program that keeps a folder synchronized with a copy elsewhere, the software that draws the desktop itself. So "I closed the window" and "the work stopped" are different claims. An application may keep a process running after its last window closes, and a program started to do a long job may have no window to close. The operating system, the software that manages programs and the computer's resources, can list which processes still exist. That helps you check whether a program has ended. An existing process could still be waiting for input or stuck, so evidence of progress must come from its work, such as updated output. 2
This distinction returns in module 3, when an application carries out work on your behalf, and again in module 10, when work continues on a computer you are not sitting at. Check both whether the process exists and whether its work is progressing. Those are different questions.
Terminal, shell, process and host
Some programs are used by typing text rather than clicking. Four words get tangled here, and later modules use all four, so this section separates them using the garden folder.
A is a program that shows text and accepts typed text. A is a program that reads what you type in that terminal, treats it as an instruction, and starts other programs with the inputs you gave. The Missing Semester course, taught at MIT to fill in tools that other courses skip, describes the shell in exactly those terms: a textual interface that takes commands and runs programs with inputs and outputs, with the terminal supplying the text window. 1 In the authored example below, the listing operation uses three processes: the terminal showing text, the shell interpreting the instruction, and the listing program the shell started, which reads the folder and prints names. The listing program ends when it has printed. The shell and the terminal keep running and wait for the next instruction. Other commands can be handled by the shell itself, without starting another program.
Here is an authored illustration of what such an exchange might look like. It is written for the lesson, not copied from any real system, and the exact words differ between systems:
> list Garden
saturday-session.txt volunteer-rota.txt funding-letter-draft.txt
compost-guide.txt plot-map.png
The is the computer on which those processes run. When these processes run on your laptop, that laptop is their host. A remote connection can instead let a terminal on your device show text from a shell on another computer. The OpenSSH documentation describes this ability to run a shell or command on a remote host. 13 The terminal is then on your device, the shell and the programs it starts are on the host, and closing the terminal on your device does not by itself say anything about whether the host's processes stopped. Module 10 returns to this. For now, the useful habit is to ask three separate questions about any running work: which program is it, which host is it running on, and what am I actually looking at?
You do not need to use a terminal to follow this course. The reason to know these words is that agent applications, tool descriptions and practitioner reports use them constantly, and a reader who thinks terminal means the computer will misread reports about remote work.
Carry this forward
- A program is stored instructions. A process is a running instance of it with its own memory, open files and identity, and one program can run as several processes.
- In the authored editor example, typing changes process memory; saving writes the change to the file. Other applications may save or share changes automatically.
- A window is an interface to software. Check whether its process still exists, then check its output to establish whether the work is progressing.
- Terminal, shell, process and host are four different things. A terminal on one device can show a shell running on another host.
Lesson check
Choose an answer for each question.
This is a practice check. Answers reset when you leave this page. Results are not saved and do not place you in another module or award a qualification.
A process holds your typing in its memory. What happens to that text when the process ends is the next question.
Sources · Reviewed 2026-09-28
- 2. Microsoft: About processes and threads
- 1. Missing Semester (MIT): Course overview and introduction to the shell
- 12. Microsoft: Interprocess communications
- 13. OpenSSH: ssh manual, remote shell and command execution
Sources support nearby explanations. Product details can change. Scenarios and model results are authored illustrations unless a lesson explicitly identifies a recorded execution. Module 7 identifies its offline code checks.