$29
Introduction to Operating Systems
COP 4600
Name and ID _________________________
Homework #1
Instructions:
1) To complete assignment one, you need to read Chapters 1, 2, and 3 of the textbook.
2) HW must be submitted on typed pdf or word document.
You must do your work on your own. Late work will be not accepted.
Q1. What are the three main purposes of an operating system? (1 point)
Answer:
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)
Answer:
Q3. Describe the actions taken by a kernel to context-switching between processes. (1 point)
Answer:
Q4. What are the benefits and the disadvantages of each of the following? (3 points)
a. Synchronous and asynchronous buffering
Answer:
b. Automatic and explicit buffering
Answer:
c. Fixed-sized and variable-sized messages
Answer:
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?