PM
CMPE 320 Midterm Exam Questions and answers with
complete solutions verified latest update graded a++
Terms in this set (43)
How many processes 8
will
3 forks create
Which of the following 2, 3, 5
are true?
1. If it returns 0,
you are in the parent
process
2. If it returns 0, you
are in the child
process
3. If it returns -1, you
are in the parent
process
4. If it returns -1, you
are in the child
process
5. It will return the
child's process id if
you are in the parent
1/27
,7/7/25, 5:33
PM
process
6. It will return the
parent's process id if
you are in the
child process
A successful call to True
"execvp" never
returns.
True or False
Using timer interrupt is a non-cooperative approach
2/27
, 7/7/25, 5:33
PM
Who will specify the The User Program
system-call number?
Who will execute The OS
the "return-from-
trap"
instruction?
Order the events 1, 4, 5, 2, 3
when the OS decides
to switch from
running process A to
running process B
- move to kernel mode
- move to user mode
- jump to B's PC
- save registers of
A to process
structure of
process A
- restore registers of B
from the kernel stack of
B
Rebooting the True
3/27