Open main menu

CDOT Wiki β

Changes

Tutorial8: Links / Process Management

287 bytes removed, 15:34, 24 February 2021
Managing Processes
[[Image:process-diagram-1.png|thumb|right|300px|(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])]]
All programs that are running on a Unix/Linux computer system are referred to as '''processes''':
* Each process has an All '''ownercommands/programs'''* Each process has a unique ID ('''PIDtasks''') * Processes in UNIX can run in the that are '''foregroundrunning''' or '''background'''* Programs on a Unix/ Commands can be run in the ''Linux computer system are referred to as 'background''processes' by placing an '''ampersand''' '''&''' after the command<br>(eg. '''program-name &''')
UNIX processes are '''hierarchicalCharacteristics of Processes:�''':
* The Each process structure has a '''root''', '''parents''', and '''children''', etc.an owner�* Creation of a new Each process is called '''forking''' or '''spawning'''* The Parent process can spawn has a child process, and in turn spawn their own child processesunique ID (PID) �* Processes keep their '''PID''' for their PID for their entire life.�* Usually a parent '''sleeps''' (i.e. suspended) when a child is executing<br>running�(the exception is when the child process is running in the background)*UNIX / Linux processes are hierarchical. The process structure can have�children processes, great grandchild processes, etc.
  Users can learn to '''manage processes ''' to become more '''productive ''' while working in the Unix / Linux Command-line environment.
13,420
edits