processes Flashcards

1
Q

What are the four possible process states?

A

Running
Waiting
Stopped
Zombie - A halted process AKA “Terminated State”. Usually only visible because it is being held open by its parent process

Note: “Orphan state” is sometimes mentioned online to help describe zombie state. “Orphan” is not a real process state. Orphan processes are in the state “Running”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the process ID of the process that spawns all other processes?

A

1

this is the init system of course. the PPID of the init process is 0, but this is a placeholder number representing the kernel and does not represent an actual process. Processes are managed by the kernel and the kernel itself is not a process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What component of the operating system manages processes?

A

The kernel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is PGID?

A

“Process Group ID” this is the ID of the group and the PID of the Process Group Leader.

This is useful because signals like ‘Term’ can be directed at a group instead of its individual members.

Processes can be grouped by sessions, and processes within a session may be grouped in groups. The sessions and groups have IDs matching the UIDs of their ‘leaders’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is PPID?

A

This is the ‘Parent Process ID’ and is the ID of the process that spawned the process in question.

Every process descends from the init system, which has a PID of 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly