eolas/zk/Processes.md

22 lines
620 B
Markdown
Raw Normal View History

2022-05-26 08:30:05 +01:00
---
2024-06-21 06:30:05 +01:00
id: t70u
title: Processes
tags: [operating-systems]
created: Friday, June 21, 2024
2022-05-26 08:30:05 +01:00
---
2024-06-21 06:30:05 +01:00
# Processes
2022-05-26 08:30:05 +01:00
2024-06-21 06:30:05 +01:00
Programs are sequences of machine instructions stored in a file. However they do
not work by themselves. Something needs to load the file's intructions into
memory and direct the CPU to run the program. The OS does this via processes.
2022-05-26 08:30:05 +01:00
2024-06-21 06:30:05 +01:00
A process **is a running instance of a given program**. It can be thought of as
a container in which a program runs. This container includes:
2022-05-26 08:30:05 +01:00
2024-06-21 06:30:05 +01:00
- a copy of the program code loaded into memory
- a memory address
- other information about the state of the process
2022-05-26 08:30:05 +01:00
2024-06-21 06:30:05 +01:00
## Related notes