eolas/zk/Basic_model_of_the_operating_system.md

42 lines
1.3 KiB
Markdown
Raw Normal View History

2022-05-23 17:42:11 +01:00
---
2022-09-06 13:26:44 +01:00
tags:
2024-06-15 11:30:03 +01:00
- operating-systems
- Linux
2022-05-23 17:42:11 +01:00
---
2024-07-26 09:00:04 +01:00
# Basic model of a nix operating system
2022-05-23 17:42:11 +01:00
We can abstract the Linux OS into three operational levels or tiers, from the
bottom up:
2022-05-23 17:42:11 +01:00
<dl>
2022-05-24 15:00:04 +01:00
<dt>User processes: user space</dt>
<dd>The running programs that the kernel manages. Also known as the user space which is the memory that the kernal assigns for user processes. Comprising:
2022-05-23 17:42:11 +01:00
<ul>
<li>Graphical user interface</li>
<li>Servers</li>
<li>Shell</li>
</ul>
2022-05-24 15:00:04 +01:00
<dt>Kernel: kernel space</dt>
2022-05-23 18:30:04 +01:00
</dd>
2022-05-24 15:00:04 +01:00
<dd>The core of the operating system. Software residing in memory that tells the CPU where to look for its next task. Acts as a mediator and primary interface between the hardware and the user processes. Known as kernel space: the memory that the kernel allocates for itself. Comprising:
2022-05-23 17:42:11 +01:00
<ul>
<li>System calls</li>
<li>Process management</li>
<li>Memory management</li>
<li>Device drivers</li>
</ul>
</dd>
<dt>Hardware</dt>
<dd>The base: one or more CPUs and RAM memory performing computations and writing to memory. Comprising:
<ul>
<li>Processor (CPU)</li>
<li>Main memory (RAM)</li>
<li>Disks</li>
<li>Network ports</li>
</ul>
</dl>
2022-05-23 18:30:04 +01:00
!! Add info on kernel mode and user mode
2022-09-06 13:26:44 +01:00
https://www.geeksforgeeks.org/user-mode-and-kernel-mode-switching/