Chapter 6 (Managing Processes) Flashcards
—– are messages that can be sent between processes
Signals
—– are messages that can be sent between processes
Signals
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.
Process
Every process on Linux is assigned a —- which is a unique number identifying a process with the Linux Kernel.
Process ID (PID)
(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.
Running
(Process States) The process is waiting for something to happen that doesn’t depend on the kernel giving it another time slice.
Sleeping
(Process States) the process has been halted before it exited normally.
Stopped
(PS States) the process has been halted before it exited normally.
Stopped
Swap space is also called
Virtual memory
—- 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.
Thrashing
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.
Process
Every process on Linux is assigned a —- which is a unique number identifying a process with the Linux Kernel.
Process ID (PID)
To create a new process in Linux, a program —-
Forks
(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.
Running
(PS States) The process is waiting for something to happen that doesn’t depend on the kernel giving it another time slice.
Sleeping
— is a background process that doesnt have any screen output but waits for certain system activity and then acts on it.
daemon
(PS States) A — process is a process that is no longer active.
Zombie
Swap space is also called
Virtual memory
—- 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.
Thrashing
(PS Options)Selects all processes that were not started normally from a terminal
x
Multiple processes started from a single shell are called —
Jobs
You can use the — key combo to suspend a job that the shell is busy running.
Ctrl+z
You can use the — key combo to suspend a job that the shell is busy running.
Ctrl+z
To place a job in the foreground use the – commmand
fg
Use the — command to run the suspended program in the background
bg
The – command lists the processes that are currently running on your Linux system.
ps
The – command lists the processes that are currently running on your Linux system.
ps
To see a list of all the signals, use the kill command with the -l option
S kill -l
— is a background process that doesnt have any screen output but waits for certain system activity and then acts on it.
daemon
(PS Options) You can use the - option to display the relationship between different processes, showing which processes start other processes.
f
(PS Options) Selects all processes on the system
-A
(PS Options) Selects all processes running in the current terminal
T
— 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
(PS Options) Restricts output to running processes (those that are not sleeping)
r
If the myeditor program were behaving badly, you could use this command
killall -9 myeditor
(PS Options) Selects processes by PID number
-p
(PS Options) Selects processes by user name; to use this option, type the user name after the option
–user
(PS Options) Selects all processes belonging to users who are members of the group named after the option
–group
The — field provides a cumulative measure of the amount of CPU time consumed by a process.
Time field
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
(Example) To start a script named analyze with a nice level of 5, use this command
$ nice -5 analyze
Top is normally started without any options, like this
$ top
(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