Q1. What are the three main purposes of an operating system? (1 point)
Q2. What is the main advantage for an operating-system designer of using virtual-machine architecture? What is the main advantage for a user? (1 point)
Q3. Describe the actions taken by a kernel to context-switching between processes. (1 point)
Q4. What are the benefits and the disadvantages of each of the following? (3 points)
- Synchronous and asynchronous buffering
- Automatic and explicit buffering
- Fixed-sized and variable-sized messages
Q5. Assume that the following program contains no syntax errors. As it executes it will create one or more processes. (4 points)
Simulate the execution of this program and show how processes are created
What is total number of processes? Show your work.
What will this program print on the screen when it executes?