This value is______.

You are executing this command in the default shell:
sleep 5000 &
The system displays a number. This value is______.

You are executing this command in the default shell:
sleep 5000 &
The system displays a number. This value is______.

A.
the priority of the /usr/bin/sleep process

B.
the process ID of the /usr/bin/sleep process

C.
the process ID of the shell spawned to execute /usr/bin/sleep

D.
the process group ID that includes the /usr/bin/sleep process

E.
the amount of memory allocated to the /usr/bin/sleep process

F.
the current number of instances of the /usr/bin/sleep process

Explanation:
If a command is terminated by the control operator &, the shell executes the
command asynchronously in a subshell. This is known as executing the command in the
background. The shell does not wait for the command to finish, and the return status is 0 (true).



Leave a Reply 7

Your email address will not be published. Required fields are marked *


hehe

hehe

It’s the process’s PID. If you kill the PID, the process will be killed, not the shell.

Correct answer is B.

Hodari

Hodari

The number spawned would be the PPID of the sleep process, the subshell would be the child process however the PPID is displayed. Answer is B.