Linux processes Flashcards

1
Q

information holds on a linux process

A

scheduling parameters - priority, amount of cpu consumed, time spent sleeping
memory image - pointer to the text, data and stack segments or page table
signal - masks showing which signals are being ignored
Machine registers - when traped to kernel the machine registers are saved here
system call state - current system call with params
file descriptor table - opened file descriptors
accounting
kernel stack
miscellaneous

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

Nice value

A

A priority value assigned to a process, which can affect its scheduling priority. A lower nice value means a higher priority

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

Process tree

A

A hierarchical structure of processes in which each process has a parent process and can have one or more child processes

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

Zombie process

A

process that has completed execution but has not yet been cleaned up by its parent process. It remains in the system’s process table until its parent acknowledges its termination.

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

Daemons

A

Background processes in Linux that run continuously and perform system-related tasks, such as managing network connections or handling print jobs

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

Interprocess Communication (IPC)

A

The mechanism used by processes in Linux to exchange data and synchronize their actions, including pipes, shared memory, and message queues.

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

Process Affinity

A

The ability in Linux to bind a process to a specific CPU or a group of CPUs, which can improve performance by reducing cache misses and improving memory locality.

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

three types of threads

A
  1. real-time fifo - highest priority and are not preemptable
  2. real-time round-robin - second priority, preemptable by the clock, and have time quanta associated with them.
  3. timesharing - lowest priority
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

runqueue or O(1) queue

A

2 lists of linked-list-queues, one for active and one for expired processes.
for the active queues, the scheduler chooses the highest priority queue and executes the first processes in it, when it ends the scheduler put the processes in one of the expired queues. once finished with active queues, it will switch the active and expired lists.

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

Completly Fair Scheduler - CFS

A

red-black tree, tasks are ordered in the tree based on the amount of time they spend running on the CPU, called vruntime. the child on the left had less time on the CPU and will be scheduled sooner.
periodically CFS increments the task’s vruntime and compares this to the current leftmost node in the tree and chose when to stop the current task and reinsert it into the tree

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