Ch. 10 Processes Flashcards

1
Q

How does linux organize the different programs waiting for their turn at the cpu?

A

Through Processes

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

what does command ps do

A

report a snapshot of current processes

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

what does command top do

A

display taks

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

what does command jobs do

A

list active jobs

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

what does command bg do

A

place a job in the background

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

what does command fg do

A

place a job in the foreground

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

what does command kill do

A

send a signal to a process

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

what does command killall do

A

kill processes by name

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

what does command shutdown do

A

shutdown or reboot the system

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

What is the expression for a program that can launch other programs?

A

Parent process producing a child process

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

What always has pid1

A

Init

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

what is pid

A

Process id. the kernal gives pid in ascending order of startup.

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

What three things does the kernal always track about processes?

A

1.PID 2. memory assigned to each process 3. processes’ readiness to resume execution

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

The most commonly used command to view processes (there are several)

A

ps

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

What does TTY tell us

A

The controlling terminal for the process

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

What is the TIME Field

A

the amount of cpu time consumed by the process.

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

what does ps tell us by defualt?

A

only the processes associated with running that terminal.

18
Q

what does ps x do

A

It tells ps to show all of our processes regardless of what terminal (if any) they are controlled by

19
Q

what does ? in the tty field mean?

A

No controlling terminal

20
Q

What does Stat tell us?

A

The state. It reveals the current status of the process

21
Q

Process State R

A

Running. This means that the process is running or ready to run.

22
Q

Process state S

A

Sleeping. the process is not running; rather, it is waiting for an event, such as a keystroke or network packet.

23
Q

Process state D

A

Uninterruptible sleep. The process is waiting for I/o such as a disk drive.

24
Q

Process state T

A

Stopped. The process has been instructed to stop.

25
Process state Z
A defunct or "zombie" process. This is a child process that has terminated but has not been cleaned up by its parent.
26
process state
a high-priority process. IT's possible to grant more importance to a process, giving it more time on the cpu. This property of a process is called niceness. A process with high priority is said to be less nice because it's taking more of the CPU's time, which leaves less for everybody else
27
process state N
A low-priority process. A process with low priority (a "nice" process) will get processor time only after other processes with higher priority have been serviced
28
what does ps aux do?
displays the processes belonging to eery user
29
CPU usage in percent
%CPU
30
User ID. This is the owner process.
USER
31
Memory usage in percent.
%MEM
32
Virtual memory size
VSZ
33
Resident set size. This is the amount of physical memory (RAM) the process is using in kilobytes
RSS
34
Time when the process started.
START
35
What does the top program display
a continuously updating display of the system processes listed in order of process activity.
36
Where doe the name top come from?
the fact that the top program is used to see the "top" processes on the system.
37
Top display consists of two parts
1. a system summary at the top of the display 2. a table of processes sorted by cpu activity
38
Outputs a process list arranged in a tree-like pattern showing the parent-child relationships between processes.
pstree
39
Outputs a snapshot of system resource usage including, memory, swap, and disk I/O. T
vmstat
40
draws a graph showing system load over time
tload. terminate the output with ctrl-c