COSC 222 Operating System EXAM
COSC 222 Operating System EXAM
CHUKA UNIVERSITY
UNIVERSITY EXAMINATIONS
INSTRUCTIONS:
Answer question ONE in SECTION A and any other TWO questions in SECTION B
SECTION A
a) State and briefly explain four major functions of an Operating system. (4 marks)
b) Using a diagram, Explain the abstract view of a computer system. (6 marks)
d) Within the broad family of operating systems, there are generally four types, categorized
based on the types of computers they control and the sort of applications they support.
Explain the various types of operating systems (4 marks)
e) With the aid of a diagram, explain the various process states that exist in the process of
execution of a program. (6 marks)
f) Differentiate between pre-emptive and non-preemptive scheduling, when it comes to CPU
scheduling (4 marks)
Page 1 of 3
COSC 222
The table below shows jobs submitted for execution in a computer system with Time-sharing
Capability
The Arrival Time and CPU burst are in arbitrary units. Using the table
a) Construct Gantt Chart for FCFS,SJF,SRTN and RR (Time slice-3) scheduling algorithms
and work out the average waiting time (12 marks)
b) Which of the algorithms provide optimal values for the Average Waiting Time?
(1 mark)
Page 2 of 3
COSC 222
b) Explain five algorithms used by memory manager to allocate a new created or swapped in
process. (10 marks)
a) (i) Define the term critical region as used in processing scheduling.(2 marks)
(ii) State the main attributes of a process. (4 marks)
(iii) Explain the role of Process Control Block. (4 marks)
a) For single unit resources, one can model resource allocation and requests as directed
graphs connecting processes and resources. Explain the importance of such graphs and
how they can be used in deadlock detection. (4 marks)
b) The batch systems were marked with major problems during the historical development
of the operating systems; discuss some of these problems and the solutions that were
offered. (6 marks)
---------------------------------------------------------------------------------------------------------------
Page 3 of 3