eolas/Operating Systems/Basic Model.md

40 lines
1.1 KiB
Markdown
Raw Normal View History

2022-05-23 17:42:11 +01:00
---
tags:
2022-05-23 18:30:04 +01:00
- Operating_Systems
2022-05-23 17:42:11 +01:00
- Linux
---
# Basic model of a (*nix) operating system
We can abstract the Linux OS into three operational levels or tiers, from the bottom up:
<dl>
<dt>User processes</dt>
2022-05-23 18:30:04 +01:00
<dd>The running programs that the kernel manages. Also known as the user space. Comprising:
2022-05-23 17:42:11 +01:00
<ul>
<li>Graphical user interface</li>
<li>Servers</li>
<li>Shell</li>
</ul>
<dt>Kernel</dt>
2022-05-23 18:30:04 +01:00
</dd>
2022-05-23 17:42:11 +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. Comprising:
<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
https://www.geeksforgeeks.org/user-mode-and-kernel-mode-switching/