Exam 10: Managing Linux Processes

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

What is forking?

Free
(Essay)
4.7/5
(28)
Correct Answer:
Verified

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.

Free
(Multiple Choice)
4.7/5
(38)
Correct Answer:
Verified

B

Why would you want to schedule commands? What methods are available for scheduling commands?

Free
(Essay)
4.7/5
(28)
Correct Answer:
Verified

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)____________________ .

(Short Answer)
4.8/5
(32)

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?

(Essay)
4.8/5
(29)

When there are multiple background processes executing in the shell, the jobs command indicates the most recent one with a(n)____ symbol.

(Multiple Choice)
4.7/5
(36)

To display a list of at Job IDs, you can specify the ____ option to the at command:

(Multiple Choice)
4.8/5
(42)

The ps command is the only command that can view process information.

(True/False)
4.8/5
(30)

When killing a background job with the kill command, you must prefix the background job IDs by a(n)____.

(Multiple Choice)
4.8/5
(40)

The ____________________ can be used to affect the process priority indirectly.

(Short Answer)
4.7/5
(41)

A system process that is not associated with a terminal is called a(n)____.

(Multiple Choice)
4.8/5
(41)

A(n)____________________ refers to a program that is running in memory and on the CPU.

(Short Answer)
4.9/5
(36)

To display an entire list of processes across all terminals and including daemons, you can add the ____ option to any ps command.

(Multiple Choice)
4.7/5
(35)

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.

(True/False)
4.9/5
(28)

Each process can start an unlimited number of other processes.

(True/False)
4.8/5
(31)

When you append a(n)____ to a command, the command is run in a background process.

(Multiple Choice)
4.8/5
(33)

Processes that have encountered an error during execution and continuously uses up system resources are referred to as ____________________ processes.

(Short Answer)
4.7/5
(29)

After a background process has been started, it can be moved to the foreground by using the ____ command.

(Multiple Choice)
4.7/5
(34)

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.

(Short Answer)
4.9/5
(30)

The ____ option to the ps command displays all processes that do not run on terminals, but not processes that run on terminals.

(Multiple Choice)
4.8/5
(42)
Showing 1 - 20 of 32
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)