# Process

> A running program. It has its own memory, kept apart from the rest.

**Field:** Software Development  
**Category:** Compilers & Runtimes  
**Also known as:** Operating System Process, Running Process, PID

## Think of it like

Think of it like a worker with their own desk. Nobody else can touch the papers on it.

## Definition

A process is a program that is running, with its own space in memory. The system starts it and gives it a number called a process ID. It also keeps it apart from the rest. One process cannot read another's memory unless they agree to share. If one process crashes, the others keep going. Opening the same app twice usually starts two processes.

## Example

Emma's laptop runs a browser, an editor and a music app. Each one is at least one process. If the editor freezes, the music keeps playing.

## Example code

```console
$ ps -o pid,comm
    PID COMMAND
   4211 bash
   4302 ps
```

Each running program has its own process ID, even ps itself.

## Why it matters

Keeping programs apart means one crash or bad app cannot take down the rest.

## Common mistake

Thinking two processes can share a variable. They cannot, so they must talk through files, pipes or the network.

## Three principles

- **Own memory.** Kept apart from others.
- **Has an ID.** The process ID.
- **Fails alone.** One crash, others go on.

## Related terms

- [Thread](https://learn.benibix.com/term/development/thread)
- [Concurrency](https://learn.benibix.com/term/development/concurrency)
- [Parallelism](https://learn.benibix.com/term/development/parallelism)
- [Memory Management](https://learn.benibix.com/term/development/memory-management)
- [Operating System (OS)](https://learn.benibix.com/term/development/operating-system)
- [Kernel](https://learn.benibix.com/term/development/kernel)

## Told apart from

- [Process vs Thread](https://learn.benibix.com/compare/process-vs-thread): A process and a thread are both ways to run work at the same time, but they differ in what they share. A process is a running program with its own memory. It is kept apart from all the others. A thread is a line of work inside a process, and it shares that memory with the other threads. Threads are cheap and share data with ease. Processes are safer, because one crash stays inside.

---

Source: https://learn.benibix.com/term/development/process
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
