Process Management Flashcards
What is a process?
A running executable
What is process management?
It’s controlling the execution of a process
What are some examples of process management?
Starting (spawning) a new process
Stopping a process
Pausing a process
Modifying the behavior of a process using signals
What can manage processes?
Users, with shell commands
Other programs or processes, using system calls
What does each process have?
A unique process identifier (PID)
A parent process (has a PPID)
Its own address space and virtual memory (code segment, data segment, etc..)
Control flows (could be multi-threaded)
From a shell, a user can:
Start a process (foreground, background)
Send a signal to a process (to suspend, stop, etc)
How can a process start a new process?
Cloning itself (fork() ) Morphing itself (exec() )
What are some system calls related to process management?
fork()
exec()
wait()
system()