Please enable JavaScript.
Coggle requires JavaScript to display documents.
Linux Kernel Source code
https://elixir.bootlin.com/linux/v6.16/source -…
-
Processes
When my operating system starts managing resources to execute a program, then we're talking about processes.
Splitting memory
from 32 bits
2^32
-
4GB
Assigned to a process
Dynamic space?
When a process is created, ithas its memory distribute in these elements.
Global variables is a bad habit?
They're located in sata, just above the text, they will never disappear.
- Colateral effects
- Attribute are local for the class
Aked to ChatGpt:
https://chatgpt.com/share/6898af9d-6164-800a-b779-0c0d8679c818
-
Not working properly neither parameters or data structures.
If a function requires a data to program, you have to add it as a parameter. If you do not add it, then you can use a global variable.
Between many entities or instances of functions and procedings, they're sharing the variable and can have catastrofic results.
With global variables, you're not doing an appropiate usage of parameters and data structures
When main is called, in the stack is assigned a space for the function where it ios first added its parameter.
Stack will be growing according to the function extent.
Next other function, more space in the stack (context)
-
-
-
-
-
-
-
-
Programs
-
When creating a program, we´re describing an automata that controls the different states where the application is.
"To describe an state, just look at the values of the variables."
-
-
-
OS
In the data, it describes all the processes. Each element in the list describes a process in my computer.
-
-