Processes and memory
A program is not a running process
A program is a set of instructions stored for later use. A process is an execution instance of a program, with an identity, memory and resources. For example, opening two independent instances of a bookstore inventory program can produce two processes using the same executable file. The operating system (OS) coordinates processor time, memory, storage and devices so that applications can work without directly controlling every piece of hardware.
Memory, storage and the kernel
RAM holds working data while programs run; storage such as an SSD keeps files across ordinary restarts. A process usually has a virtual address space: addresses it uses are mapped by the OS and hardware. This supports isolation, although processes may deliberately share memory. The kernel is the central privileged part of the OS. Ordinary application code runs with restricted hardware access in user mode and requests protected operations through OS interfaces. Administrator account privileges and kernel-mode execution are different concepts.
Read a fictional process inventory
Consider a static report: catalog-app, PID 410, running, depends on index-worker; index-worker, PID 411, stopped; print-helper, PID 412, running, independent. A PID is a process identifier in a particular system context; a stopped entry here means the worker is not serving requests, not a particular OS process-state code. Catalog-app may still be running while searches fail because its index worker is unavailable. Print-helper is unrelated to the search failure. A dependency is something a component needs for a particular function.
A useful security boundary
Suppose the catalog application only needs to read product descriptions. Running its process with a restricted identity reduces the resources it can access if the application behaves incorrectly. Memory separation and access restrictions are useful layers, not guarantees: bugs, shared resources and explicitly granted rights can affect other components. A process name or PID alone does not establish trust; identifiers can be reused, and names can be misleading. Check the approved inventory, function and relevant evidence before deciding what is wrong.
Practice: find the missing dependency
In a fictional library, loan-app is running and requires barcode-worker for checkout. Barcode-worker is unavailable; report-export is running independently. Name the most relevant dependency, explain why the running status is insufficient, and identify one additional piece of evidence to request (for example, a checkout-specific event). Do not inspect or stop any real processes. Next: files and permissions.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Processes and memory — Knowledge check
Apply computing and operating system concepts to fictional reports.
Two independent instances use the same executable. What can be different?
Which resource normally holds working data while an application runs?
A user-mode application needs to read a protected file. What normally mediates the request?
Catalog is running; its required search index worker is unavailable. What follows?
A familiar PID appears in a new report. What is justified?