0
0
Intro to Computingfundamentals~6 mins

Process management (running programs) in Intro to Computing - Full Explanation

Choose your learning style9 modes available
Introduction
Imagine you want to use your computer to open a game or write a document. The computer needs a way to start, keep track of, and stop these tasks. Process management is how the computer handles running programs smoothly and safely.
Explanation
What is a Process
A process is like a task or job that the computer is working on. When you open a program, the computer creates a process to run it. This process includes the program's instructions and the data it uses while running.
A process is the active instance of a program running on the computer.
Starting a Process
When you open a program, the computer loads it into memory and creates a process. This process gets its own space to work in, separate from other processes. The computer then begins following the program's instructions step by step.
Starting a process means loading the program and preparing it to run.
Process States
A process can be in different states like running, waiting, or stopped. Running means the computer is actively working on it. Waiting means it is paused, maybe waiting for input or resources. Stopped means the process has finished or was closed.
Processes change states as they run, wait, or finish.
Managing Multiple Processes
Computers often run many processes at once. The system switches between them quickly so it looks like they run at the same time. This switching is called multitasking and helps keep everything running smoothly.
Process management allows many programs to run together by sharing time.
Ending a Process
When a program is closed or finishes its job, the process ends. The computer frees up the memory and resources the process was using so other processes can use them.
Ending a process frees resources for other tasks.
Real World Analogy

Think of a busy kitchen where chefs prepare different dishes. Each dish is like a process. The kitchen manager makes sure each chef has space and tools, switches attention between dishes, and cleans up when a dish is done.

Process → A dish being prepared by a chef
Starting a Process → A chef beginning to cook a new dish
Process States → A dish being cooked, waiting for ingredients, or finished
Managing Multiple Processes → The kitchen manager coordinating many chefs working on different dishes
Ending a Process → Cleaning the kitchen space after a dish is served
Diagram
Diagram
┌───────────────┐       ┌───────────────┐       ┌───────────────┐
│   Start       │──────▶│   Running     │──────▶│   Waiting     │
└───────────────┘       └───────────────┘       └───────────────┘
       ▲                      │                      │
       │                      ▼                      ▼
┌───────────────┐       ┌───────────────┐       ┌───────────────┐
│   End         │◀──────│   Finished    │◀──────│   Stopped     │
└───────────────┘       └───────────────┘       └───────────────┘
This diagram shows the different states a process can be in and how it moves between them.
Key Facts
ProcessAn active program running on the computer with its own memory and instructions.
MultitaskingThe computer's ability to run multiple processes by switching between them quickly.
Process StateThe current condition of a process, such as running, waiting, or stopped.
Process CreationThe act of loading a program into memory and preparing it to run.
Process TerminationWhen a process finishes or is closed and its resources are freed.
Common Confusions
Thinking a process is the same as the program file on disk.
Thinking a process is the same as the program file on disk. A program is just the code saved on disk; a process is the program running in memory with its own data.
Believing the computer runs all processes at exactly the same time.
Believing the computer runs all processes at exactly the same time. Most computers switch quickly between processes to give the appearance of simultaneous running, called multitasking.
Summary
A process is a program running with its own space and instructions in the computer's memory.
The computer manages processes by starting, switching between, and ending them to keep everything running smoothly.
Processes change states like running, waiting, or stopped as they perform their tasks.