This repository has been archived on 2023-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
2023-03-15 17:09:04 +00:00
|
|
|
---
|
|
|
|
title: "proc"
|
2023-03-16 11:12:05 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
The general processing structure is a bit more complex,
|
|
|
|
so I've split the schematics into multiple parts.
|
|
|
|
|
|
|
|
Processes Schematic:
|
|
|
|
```
|
|
|
|
+----------------+
|
|
|
|
| Kernel Process | <----+
|
|
|
|
| [Threads] | |
|
|
|
|
+----------------+ |
|
|
|
|
| [Parent]
|
|
|
|
[Childs] |
|
|
|
|
| +--------+--------+
|
|
|
|
v / \
|
|
|
|
+-----------+ +-----------+
|
|
|
|
| Process 1 | --[Next]-> | Process 2 |
|
|
|
|
| [Threads] | <-[Prev]-- | [Threads] | . . .
|
|
|
|
+-----------+ +-----------+
|
|
|
|
| |
|
|
|
|
[Childs] [Childs]
|
|
|
|
| |
|
|
|
|
v v
|
|
|
|
. . . . . .
|
|
|
|
```
|
|
|
|
|
|
|
|
Thread Schematics (processes view):
|
|
|
|
```
|
|
|
|
+---------+
|
|
|
|
| Process | <-------+
|
|
|
|
+---------+ |
|
|
|
|
| [Process]
|
|
|
|
[Threads] |
|
|
|
|
| +--------+--------+
|
|
|
|
v / \
|
|
|
|
+----------+ +----------+
|
|
|
|
| Thread 1 | --[LocalNext]-> | Thread 2 |
|
|
|
|
| | <-[LocalPrev]-- | | . . .
|
|
|
|
+----------+ +----------+
|
|
|
|
```
|
|
|
|
|
|
|
|
Thread schematics (schedulers view):
|
|
|
|
```
|
|
|
|
[RunningThread]
|
|
|
|
|
|
|
|
|
v
|
|
|
|
+----------+ +----------+ +----------+
|
|
|
|
+---> | Thread 1 | --[GlobalNext]-> | Thread 2 | --[GlobalNext]-> | Thread 3 | . . . ----+
|
|
|
|
| +-- | | <-[GlobalPrev]-- | | <-[GlobalPrev]-- | | . . . <-+ |
|
|
|
|
| | +----------+ +----------+ +----------+ | |
|
|
|
|
| | | |
|
|
|
|
| +------------------------------------[GlobalPrev]------------------------------------+ |
|
|
|
|
+--------------------------------------[GlobalNext]--------------------------------------+
|
|
|
|
```
|