Open main menu

CDOT Wiki β

Changes

Tutorial8: Links / Process Management

134 bytes added, 10:24, 3 February 2020
Managing Processes
* Each process has an '''owner'''
* Each process has a unique ID (PID) Processes in UNIX can run in the '''foreground''' or '''background'''.
 
[[Image:process-diagram-1.png|thumb|right|300px|(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]]]
UNIX processes are '''hierarchical''':This * The process structure has a '''root''', '''parents''', and '''children'''* Creation of a new process is called '''forking ''' or '''spawning'''* Each process has its own '''PID''' (''process ID number'')* The Parent process can fork spawn a child and children can fork spawn their own children* Processes keep their '''PID ''' for their entire life* Usually a parent sleeps when a child is executing– The (the exception is when the child process is executing in the background)
13,420
edits