Sec. 2 Processes Flashcards
a program is a ……?
set of instructions, along with any internal data used while carrying in the instructions out.
a program may also use ….?
external data
what is a process?
a process is an executing program and associated resources .
- including :
- enviorment open files
- signal handlers
- etc…
when it comes to an everything is shared situtation with processes one speaks of …..?
multi-threaded process
In linux each thread of execution is considered …..?
individually
describe what a process is:
A process is an instance of an executing program .
every process has a ….?
process id or pid, a ppid or parent process id and a pgid (process group id)
every process also has ……?
- program code
- data
- variables,
- file descriptors
- and an evironment
init is usually the first _______ ?
process run ona system.
if the parent process dies before the child the ppid of the child is set to …..?
1
the child process which dies before its parent is known as a ….?
zombie process
Zombie processes have released all of their resoures and remain only to …..?
convey their exit status
processes are controlled by …..?
scheduling
Scheduling of processes is completely ….?
preemptive
All process have certain attributes . what are they?
- the program being executed
- context (state)
- permissions
- associated resources
every process is executing some …….?
program
explain what the context of a process is .
at any given moment , a process may taek a snapshot of itself by trapping the state of its CPU registers, where it is executing in the program, what is in the process’ memory and other information. this is the processs’ context
when a process started it is isolated in it own ______ ______ to protect is from other processes .
user space
do processes have direct acces to hardware?
no
Hardware is managed by the ……?
kernel
a process will have to use (what?) to indirectly access hardware
system calls