From 1d72625044706cd552a83818265dc6bb762ec681 Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 21 Feb 2021 22:41:51 +0200 Subject: [PATCH] png --- .../Life_cycle_of_a_process.adoc | 8 ++++---- Linux-process-management/{ => images}/1-76.png | Bin Linux-process-management/{ => images}/2-50.png | Bin .../{ => images}/Multithreaded_process.png | Bin .../{ => images}/Process_states.png | Bin .../Simplified_Structure_of_the_Linux_Kernel.png | Bin .../{ => images}/fork-exec-exit-wait.png | Bin .../{ => images}/program_in_memory2.png | Bin Linux-process-management/processes.adoc | 6 +++--- 9 files changed, 7 insertions(+), 7 deletions(-) rename Linux-process-management/{ => images}/1-76.png (100%) rename Linux-process-management/{ => images}/2-50.png (100%) rename Linux-process-management/{ => images}/Multithreaded_process.png (100%) rename Linux-process-management/{ => images}/Process_states.png (100%) rename Linux-process-management/{ => images}/Simplified_Structure_of_the_Linux_Kernel.png (100%) rename Linux-process-management/{ => images}/fork-exec-exit-wait.png (100%) rename Linux-process-management/{ => images}/program_in_memory2.png (100%) diff --git a/Linux-process-management/Life_cycle_of_a_process.adoc b/Linux-process-management/Life_cycle_of_a_process.adoc index 563ce0f..2b4632c 100644 --- a/Linux-process-management/Life_cycle_of_a_process.adoc +++ b/Linux-process-management/Life_cycle_of_a_process.adoc @@ -23,7 +23,7 @@ endif::[] [.float-group] -- .fork-exec footnote:[http://www.it.uu.se/education/course/homepage/os/vt18/images/module-2/fork-exec-exit-wait.png[^]] -image::./fork-exec-exit-wait.png[350,350,role="related thumb right"] +image::images/fork-exec-exit-wait.png[350,350,role="related thumb right"] *fork()* is the the system call that the parent process uses to "divide" itself ("fork") into two identical processes. @@ -184,7 +184,7 @@ The threads of a process share its executable code and the values of its dynamic [.float-group] -- .A process with two threads footnote:[https://commons.wikimedia.org/w/index.php?curid=2233446[^]] -image::./Multithreaded_process.png[350,350,role="related thumb right"] +image::images/Multithreaded_process.png[350,350,role="related thumb right"] Threads in the same process share: @@ -244,7 +244,7 @@ it's computationally rather expensive to duplicate a process and a lot of subthr [.float-group] -- .Process Memory footnote:[https://gabrieletolomei.files.wordpress.com/2013/10/program_in_memory2.png?w=960[^]] -image::./program_in_memory2.png[350,350,role="related thumb right"] +image::images/program_in_memory2.png[350,350,role="related thumb right"] * Text Segment. ** The Text segment (a.k.a the Instruction segment) contains the executable program code and constant data. @@ -301,7 +301,7 @@ chrt allows to set your scheduling policy as well as priority. [.float-group] -- .Structure of the Linux kernel footnote:[By ScotXW - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=47075153[^]] -image::./Simplified_Structure_of_the_Linux_Kernel.png[350,350,role="related thumb right"] +image::images/Simplified_Structure_of_the_Linux_Kernel.png[350,350,role="related thumb right"] The scheduler is the Linux kernel part that decides which runnable process will be executed by the CPU next. diff --git a/Linux-process-management/1-76.png b/Linux-process-management/images/1-76.png similarity index 100% rename from Linux-process-management/1-76.png rename to Linux-process-management/images/1-76.png diff --git a/Linux-process-management/2-50.png b/Linux-process-management/images/2-50.png similarity index 100% rename from Linux-process-management/2-50.png rename to Linux-process-management/images/2-50.png diff --git a/Linux-process-management/Multithreaded_process.png b/Linux-process-management/images/Multithreaded_process.png similarity index 100% rename from Linux-process-management/Multithreaded_process.png rename to Linux-process-management/images/Multithreaded_process.png diff --git a/Linux-process-management/Process_states.png b/Linux-process-management/images/Process_states.png similarity index 100% rename from Linux-process-management/Process_states.png rename to Linux-process-management/images/Process_states.png diff --git a/Linux-process-management/Simplified_Structure_of_the_Linux_Kernel.png b/Linux-process-management/images/Simplified_Structure_of_the_Linux_Kernel.png similarity index 100% rename from Linux-process-management/Simplified_Structure_of_the_Linux_Kernel.png rename to Linux-process-management/images/Simplified_Structure_of_the_Linux_Kernel.png diff --git a/Linux-process-management/fork-exec-exit-wait.png b/Linux-process-management/images/fork-exec-exit-wait.png similarity index 100% rename from Linux-process-management/fork-exec-exit-wait.png rename to Linux-process-management/images/fork-exec-exit-wait.png diff --git a/Linux-process-management/program_in_memory2.png b/Linux-process-management/images/program_in_memory2.png similarity index 100% rename from Linux-process-management/program_in_memory2.png rename to Linux-process-management/images/program_in_memory2.png diff --git a/Linux-process-management/processes.adoc b/Linux-process-management/processes.adoc index 79a528c..b18112d 100644 --- a/Linux-process-management/processes.adoc +++ b/Linux-process-management/processes.adoc @@ -66,7 +66,7 @@ An operating system kernel that allows multitasking needs processes to have cert [.float-group] -- [.right] -image:./Process_states.png[350,350,role="related thumb right"] +image:images/Process_states.png[350,350,role="related thumb right"] * the process is *"created"*. * After that the process scheduler assigns it the *"waiting"* state. @@ -104,9 +104,9 @@ Processes can communicate with each other through: [.float-group] -- [.right] -image:./1-76.png[350,350,role="related thumb right"] +image:images/1-76.png[350,350,role="related thumb right"] [.left] -image:./2-50.png[350,350,role="related thumb left"] +image:images/2-50.png[350,350,role="related thumb left"] -- footnote:[https://www.geeksforgeeks.org/inter-process-communication-ipc/[^]]