Process Management Flashcards
What is a process?
Process is a running program.
What does process include?
Binary, instance of VM, open files, one or more threads, associated user …
What is a thread?
Thread is a unit of activity inside a process.
What does each thread have?
Its own stack, registers and instruction pointer.
How do we call a unique value assigned to each process?
Process id.
What is the first process started after booting?
The init process.
What is the pid of init process?
1.
What are some of the prefered locations of init process?
/sbin/init, /bin/init, /etc/init
How does the kernel behave if it can not find the init process?
It halts the system.
What is the default maximum value that can be assigned as process id?
32768.
How can we change the default maximum value for process id?
By modifying /proc/sys/kernel/pid_max.
How does kernel allocate process ids?
In a linear fashion.
What is a parent process?
A process that starts a new process.
What is a child process?
Process spawned by some parent process.
What does child inherit from parent in terms of resource management?
Parents user and group ownerships.