Docsity

Introduction to Operating Systems - Study Guide | CMSC 312, Exams of Operating Systems

Toggle sidebar
bg1
CMSC 312 Operating System
Spring 2005
Midterm Exam
Department of Computer Science
Virginia Commonwealth University
1. List five services provided by an operating system, Explain how each provides
convenience to the users. Explain also in which cases it would be impossible for
user-level programs to provide these services.
2. As a process executes, it changes state depends on the current activity of that
process.
a) Name the five states and make a short definition of states
b) Show the transition among states and explain the transition
3. What is the purpose of command interpreter? Why is it usually separate from the
kernel? What is difference between the command interpreter and system calls?
4. Describe the context switching in terms of PCB, PC and CPU. Assume that
Shortest Remaining Job First Scheduling is used for CPU scheduling, Process A
arrives at time 0 with long CPU burst (say 3 second long) and no else processes
are in the system, Process B arrives at time 4 millisecond with short CPU burst
(say 3 millisecond long).
5. Write a fortune server on the computer whose IP address is “fortune.notreal.com”.
The server delivers random one-line fortunes to the client. The server will use port
number 3000.
pf2

Partial preview of the text

Download Introduction to Operating Systems - Study Guide | CMSC 312 and more Exams Operating Systems in PDF only on Docsity!

CMSC 312 Operating System Spring 2005 Midterm Exam Department of Computer Science Virginia Commonwealth University

  1. List five services provided by an operating system, Explain how each provides convenience to the users. Explain also in which cases it would be impossible for user-level programs to provide these services.
  2. As a process executes, it changes state depends on the current activity of that process. a) Name the five states and make a short definition of states b) Show the transition among states and explain the transition
  3. What is the purpose of command interpreter? Why is it usually separate from the kernel? What is difference between the command interpreter and system calls?
  4. Describe the context switching in terms of PCB, PC and CPU. Assume that Shortest Remaining Job First Scheduling is used for CPU scheduling, Process A arrives at time 0 with long CPU burst (say 3 second long) and no else processes are in the system, Process B arrives at time 4 millisecond with short CPU burst (say 3 millisecond long).
  5. Write a fortune server on the computer whose IP address is “fortune.notreal.com”. The server delivers random one-line fortunes to the client. The server will use port number 3000.
  1. Consider the following set of processes: Process Name Arrival Time Processing Time A B C D E

Calculate average turn around time and waiting time for a) FCFS b) Round Robin with q = 1 c) Round Robin with q = 3 d) Shortest Job First with non-preemptive e) Shortest Job First with preemptive

  1. What advantage is there in having different time quantum size on different levels of a multilevel feedback queue scheduling?
  2. Explain the differences in the degree to which the following scheduling algorithms discriminate in favor of short processes: a) FCFS b) RR c) Multilevel feedback queue
  3. Describe short term scheduling and long term scheduling, and differences.
  4. Consider the LAN with 100 PCs and a server. The average time for the server to respond to each service request is 0.6 secs, and the standard deviation is estimated to equal to the mean. At peak times, the service request ratio of the LAN reaches 20 queries per minute. a) What is the average response time ignoring line overhead? b) If 20% more utilization is experienced, will response time increase by ore or less than 20%
  5. (Bonus) Show that the Shortest Job First scheduling is the optimum scheduling among non-preemptive scheduling policy.