Exam 10: Managing Linux Processes
What is forking?
When executing compiled programs or shell scripts, the BASH shell that interprets the command you typed creates a new BASH shell. This process is known as forking and is carried out by the fork function in the BASH shell. This new subshell then executes the binary program or shell script using its exec function. After the binary program or shell script has completed, the new BASH shell uses its exit function to kill itself and return control to the original BASH shell. The original BASH shell uses its wait function to wait for the new BASH shell to carry out the aforementioned tasks before returning a prompt to the user.
Processes are started with a nice value of ____ by default.
B
Why would you want to schedule commands? What methods are available for scheduling commands?
Although most processes are begun by users executing commands while logged in to a terminal, at times you might want to schedule a command to execute at some point in the future. Scheduling system maintenance commands to run during nonworking hours is good practice, as it does not disrupt normal business activities. Two different daemons can be used to schedule commands: the at daemon (atd)and the cron daemon (crond). The at daemon can be used to schedule a command to execute once in the future, whereas the cron daemon is used to schedule a command to execute repeatedly in the future.
The amount of time a process has to use the CPU is called a(n)____________________ .
Describe the purpose the process state column displayed by the ps -l command. What values may appear in this column, and what do these values indicate?
When there are multiple background processes executing in the shell, the jobs command indicates the most recent one with a(n)____ symbol.
To display a list of at Job IDs, you can specify the ____ option to the at command:
The ps command is the only command that can view process information.
When killing a background job with the kill command, you must prefix the background job IDs by a(n)____.
The ____________________ can be used to affect the process priority indirectly.
A system process that is not associated with a terminal is called a(n)____.
A(n)____________________ refers to a program that is running in memory and on the CPU.
To display an entire list of processes across all terminals and including daemons, you can add the ____ option to any ps command.
If the /etc/at.allow and /etc/at.deny files do not exist, only the root user is allowed to schedule tasks using the at daemon.
When you append a(n)____ to a command, the command is run in a background process.
Processes that have encountered an error during execution and continuously uses up system resources are referred to as ____________________ processes.
After a background process has been started, it can be moved to the foreground by using the ____ command.
In a process referred to as ____________________, when executing compiled programs or shell scripts, the BASH shell that interprets the command you typed creates a new BASH shell.
The ____ option to the ps command displays all processes that do not run on terminals, but not processes that run on terminals.
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)