PAUSE
ENCORE
BOX
LESSON REVIEW
QPR1
1. The process id is printed on your terminal screen
after placing a process in the ________________.
QPR2
2. What is the maximum possible number of child processes
generated by the code below:
int i, procid;
for ( i=0; i < 5; i++) {
if ((procid = fork()) == 0) {
QPR3
3. The only way to create a new process with a UNIX operating
system is with the system call _______________.
QPR4
4. Which of the following system calls can be used to
send a signal?
a signal()
b execv()
c wait()
d kill()
QPR5
5. Suppose a process creates other processes with the fork()
system call. The creator of the process is referred to as
the __________ process.
QPR6
6. What are typical actions for a parent process?
a fork one or more child processes
b wait for a child process to terminate
c call execv()
d examine the exit status of terminated child
e a and b
f a and c
g b and d
h a, b, and d
QPR7
7. To specify a default action upon receipt of a signal,
the system call ____________ is used.
QPR8
8. Which of the following statements is incorrect?
a kill() is used to send a signal.
b The superuser can send a signal to any process.
c Your process can use the signal() system call
to specify that a kill signal should be ignored.
d You can specify the reaction to more than one
signal by calling signal() more than one time.
QPR9
9. When using the signal system call, the first parameter
specified is the signal. The second parameter can be:
a SIG_DFL
b SIG_IGN
c the name of a function to be executed
d all of the above
e none of the above
RINTER
______________________________________________________________________________
$PRMT_STR$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
$F_DIAG_L1$
$F_DIAG_L2$
$F_DIAG_L3$
$S_DIAG_L1$
$S_DIAG_L2$
$S_DIAG_L3$
$REV_STR1$
$REV_STR2$
FORGET1
The correct answer is: $ANSWER$
GO