Chapter 6 (Managing Processes) Flashcards

1
Q

—– are messages that can be sent between processes

A

Signals

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

—– are messages that can be sent between processes

A

Signals

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

A Linux — is a program that is running on the system. It can be started either from a command line, a graphical desktop, the kernel itself.

A

Process

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

Every process on Linux is assigned a —- which is a unique number identifying a process with the Linux Kernel.

A

Process ID (PID)

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

(Process States) The process is executing,though it must wait for it assigned time slices and must pause for a few microseconds between steps in the execution.

A

Running

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

(Process States) The process is waiting for something to happen that doesn’t depend on the kernel giving it another time slice.

A

Sleeping

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

(Process States) the process has been halted before it exited normally.

A

Stopped

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

(PS States) the process has been halted before it exited normally.

A

Stopped

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

Swap space is also called

A

Virtual memory

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

—- Occurs when the kernel spends so much time moving processes to and from the swap space that the kernel and the processes bog down and work inefficiently.

A

Thrashing

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

A Linux — is a program that is running on the system. It can be started either from a command line, a graphical desktop, the kernel itself.

A

Process

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

Every process on Linux is assigned a —- which is a unique number identifying a process with the Linux Kernel.

A

Process ID (PID)

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

To create a new process in Linux, a program —-

A

Forks

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

(PS States) The process is executing,though it must wait for it assigned time slices and must pause for a few microseconds between steps in the execution.

A

Running

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

(PS States) The process is waiting for something to happen that doesn’t depend on the kernel giving it another time slice.

A

Sleeping

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

— is a background process that doesnt have any screen output but waits for certain system activity and then acts on it.

A

daemon

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

(PS States) A — process is a process that is no longer active.

A

Zombie

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

Swap space is also called

A

Virtual memory

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

—- Occurs when the kernel spends so much time moving processes to and from the swap space that the kernel and the processes bog down and work inefficiently.

A

Thrashing

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

(PS Options)Selects all processes that were not started normally from a terminal

A

x

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

Multiple processes started from a single shell are called —

A

Jobs

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

You can use the — key combo to suspend a job that the shell is busy running.

A

Ctrl+z

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

You can use the — key combo to suspend a job that the shell is busy running.

A

Ctrl+z

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

To place a job in the foreground use the – commmand

A

fg

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Use the --- command to run the suspended program in the background
bg
22
The -- command lists the processes that are currently running on your Linux system.
ps
22
The -- command lists the processes that are currently running on your Linux system.
ps
23
To see a list of all the signals, use the kill command with the -l option
S kill -l
23
--- is a background process that doesnt have any screen output but waits for certain system activity and then acts on it.
daemon
24
(PS Options) You can use the - option to display the relationship between different processes, showing which processes start other processes.
f
25
(PS Options) Selects all processes on the system
-A
26
(PS Options) Selects all processes running in the current terminal
T
27
--- requests that a program close itself, giving the program a chance to clean up its work, close any open files, and so forth, before ending.
SIGTERM
28
(PS Options) Restricts output to running processes (those that are not sleeping)
r
29
If the myeditor program were behaving badly, you could use this command
killall -9 myeditor
30
(PS Options) Selects processes by PID number
-p
31
(PS Options) Selects processes by user name; to use this option, type the user name after the option
--user
32
(PS Options) Selects all processes belonging to users who are members of the group named after the option
--group
33
The --- field provides a cumulative measure of the amount of CPU time consumed by a process.
Time field
34
The --- is a collection of information about the Linux Kernel that you access as if it were actually data files stored in subdirectories of /proc
/proc file system
35
(Example) To start a script named analyze with a nice level of 5, use this command
$ nice -5 analyze
36
Top is normally started without any options, like this
$ top
37
(Example) if the PID of the analyze script is 1776, this renice command changes the running script's priority to 10 so that it takes longer to complete
renice +10 1776
38
To see a list of all the signals, use the kill command with the -l option
S kill -l
39
Almost all programs respond to the --- signal (#15) This signal requests that the program end.
SIGTERM
40
Shuts down the indicated process
SIGKILL
41
(Interactive Commands in top) Change the number of processes included in the display
n or #
42
--- requests that a program close itself, giving the program a chance to clean up its work, close any open files, and so forth, before ending.
SIGTERM
43
This command sends a signal to all processes started by a given command
killall
44
If the myeditor program were behaving badly, you could use this command
killall -9 myeditor
45
--- determines how much CPU time is granted to the process as the kernel allocates time slices among all processes.
Priority
46
Another name for the priority of a process is ---
nice level
47
The standard nice level is -
0
48
The highest nice level, which makes the program run the slowest is --
20
49
The root user can lower the nice level of a process to -- which gives that process a lot of extra CPU time
-20
50
(Example) To start a script named analyze with a nice level of 5, use this command
$ nice -5 analyze
51
The --- command changes the nice level of a process that is already running. To use the --- you must know the PID of the process you want to affect.
renice
52
(Example) if the PID of the analyze script is 1776, this renice command changes the running script's priority to 10 so that it takes longer to complete
renice +10 1776
53
(Interactive Commands in top) Update the process list display immediately
Spacebar
54
(Interactive Commands in top) Show a help screen with a command or listing
h or ?
55
(Interactive Commands in top) Kill a process
k
56
(Interactive Commands in top) Change the number of processes included in the display
n or #
57
Renice a process
r
58
A program called --- lets you view system status information on your desktop continuously
GKrellM
59
A --- contains prewritten functionality that any program can use
library
60
--- Include library functions in the main program. They require no additional library files on the Linux system. Each copy of an application loads into system memory a duplicate copy of all the library functions it uses
Statically linked applications
61
--- means that several applications can use a single copy of a library that has been loaded into memory.
Shared Libraries
62
(Note) Running multiple applications that are dynamically linked to the same libraries requires less memory than running multiple statically linked applications.
/
66
You can use the --- command to list all the libraries that a program requires.
ldd
67
(Combinations of Process information Fields available from ps) Shows fields related to controlling jobs in a shell
i
68
(Combinations of Process information Fields available from ps) Shows fields related to signals that each process handles
s
69
(Combinations of Process information Fields available from ps) Shows fields that define how the owner of each process is using system resources
u
70
(Combinations of Process information Fields available from ps) Shows fields detailing how each process is using virtual memory
v
71
(Column Heading in ps output) | Process Group ID
PGID
72
(Column Heading in ps output) | Session ID
SID
73
(Column Heading in ps output) | Controlling Terminal
TTY
74
(Column Heading in ps output) | Process group ID of the owner of the terminal running the process
tpgid
75
(Column Heading in ps output) | Owner of the process
user
76
(Column Heading in ps output) | Time left of a possible timeslice allocated to the process
pri
77
(Column Heading in ps output) | Nice level
nice
78
(Column Heading in ps output) | Scheduling Policy
plcy
79
(Column Heading in ps output) | Real-time priority
rpri
80
(Column Heading in ps output) | Number of major faults loading information from a file system.
majflt
81
(Column Heading in ps output) | Number of minor faults (with no disk access involved)
minflt
82
(Column Heading in ps output) | Size of the text used by the program (in kb)
trs
83
(Column Heading in ps output) | Size of the data used by the program (in kb)
drs
84
(Column Heading in ps output) | Virtual image size of the process (in kb)
size
85
(Column Heading in ps output) | Space used on swap device by this process (in kb)
swap
86
(Column Heading in ps output) | Kilobytes of the program resident in memory
rss
87
(Column Heading in ps output) | Shared memory size in kb
share
88
(Column Heading in ps output) | Number of pages of imformation that are dirty (not yet updated to the hard disk)
dt
89
(Column Heading in ps output) | State of the process
stat
90
(Column Heading in ps output) | process flags
Flags
91
(Column Heading in ps output) | Kernel function at the point where the process is sleeping
wchan
92
(Column Heading in ps output) | User ID of the owner of this process
uid
93
(Column Heading in ps output) | Weighted percentage of cpu time consumed
wpcpu
94
(Column Heading in ps output) | Percentage of cpu used since last update
pcpu
95
(Column Heading in ps output) | Percentage of memory used
pmem
96
(Column Heading in ps output) | Time that the process was started
start
99
--- --- let you log in at multiple independent text-mode screens
Virtual consoles
100
(Note) Multiple processes can be started from a single shell. Starting a process with a ampersand runs the program in the background.
/
101
You can view process information within the /proc file system or using a number of utilities such as -- and ---
Ps and top
102
--- opens your crontab in a text editor.
Crontab -e
103
Two daemons --- and --- are started when you boot Linux using standard service scripts in /etc/ex.d/init.d
ATF and cond
104
The --- command lists all queued at jobs.
Atq
105
Use the --- command to cancel a command that you have submitted using at.
Atrm
106
The --- variable defines which shell the crond daemon uses to execute the commands and scripts listed in a file.
Shell
107
The --- variable defines which user on the Linux system receives a email message about containing the output from all corn jobs defined in the file.
Mailto