From 80ccf68f55dbb70d7e5ed52ee95b3c9d1b6ce264 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Thu, 20 Mar 2025 11:07:49 +0100 Subject: vault backup: 2025-03-20 11:07:48 --- 1 Projects/OSTEP/Process.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 1 Projects/OSTEP/Process.md (limited to '1 Projects/OSTEP/Process.md') diff --git a/1 Projects/OSTEP/Process.md b/1 Projects/OSTEP/Process.md new file mode 100644 index 0000000..78d074e --- /dev/null +++ b/1 Projects/OSTEP/Process.md @@ -0,0 +1,20 @@ +--- +tags: + - ostep +--- +Process = abstraction of **running program**. Program = lifeless code stored on disk. +**Mechanisms** are low-level protocols that implement needed piece of functionality. Example a **context-switch** that enables time-sharing the CPU. +**Policies** are algorithms to make a decision; such as which program to run. + +Process = **Machine state**. Important parts of the system. Its address space: the memory allocated by the OS. +The program counter; which instruction is being executed. +Stack & frame pointer: the stack for function params, return addresses and local variables. + +Seperating the mechanisms (how) from policies (which) allows changing either seperately from one another. + +API: +- Create : create new process to run a program +- Destroy : kil preemptively +- Wait : stop running +- Misc control: e.g suspend/resume +- Status : e.g ps axf \ No newline at end of file -- cgit v1.2.3