Midterm 1
Midterm 1
Name: ………………………………………………………………………………………………………….
Instructions:
This exam is open book and open notes. Allotted time is 75 minutes.
Note that the points add up to 100 + 20 bonus points.
A ____ can be used to prevent a user program from never returning control to the operating
system.
A) portal
B) program counter
C) firewall
D) timer
Consider the following code segment. Explain what will happen and how many processes you
will have (a drawing would help):
(c) deadlock
(f) starvation
(g) Discuss what would change above if you are a hardware developer.