Operating Systems December Exam 2023
Operating Systems December Exam 2023
INSTRUCTIONS TO CANDIDATES
1. This paper carries 5 (FIVE) questions.
2. Answer any 4 (four) questions
3. Each question carries 25 Marks
4. The marks for each question are indicated in square [] brackets.
Page 1 of 3
QUESTION 1
(a) List and explain the five functions which an Operating System should accomplish.[10]
(b) Explain briefly five types of Operating Systems. [10]
(c) Explain the difference between a process and a thread. [5]
QUESTION 2
(a) Using a state diagram identify the different states a live process may occupy and how a
process moves between these states. [15]
(b) Explain the purpose of Interprocess Communication (IPC). [5]
(c) The process control block (PCB) is a data structure containing certain important
information about the process. Identify the information contained in the PCB. [5]
QUESTION 3
(a) Using examples, compare and contrast preemptive and non-preemptive scheduling as
used in process management. [15]
(b) Explain the following:
(i) Deadlock in Operating Systems. [2]
(ii) Conditions that are necessary for a Deadlock to occur. [8]
QUESTION 4
(a) One of the major functions of an Operating System is File Management. Explain the
techniques that can be used for the protection of user files. [10]
(b) Describe virtual memory and explain its advantages in operating systems. [5]
(c) Consider the following set of processes that arrive at time 0, with the length of CPU time
given in milliseconds.
(i) Draw the Gantt Chart using the FCFS algorithm [2]
Page 2 of 3
(ii) Calculate Average Turnaround time [2]
(iii) Calculate Average Waiting time [2]
(iv) Calculate Throughput [2]
(v) Calculate Processor Utilisation [2]
QUESTION 5
(a) You are employed as a System Administrator of a bank. The bank is about ot acquire a
new Operating System. Give advice to management on the desirable qualities of an
Operating System. [15]
(b) Discuss the mechanisms which can be used to implement security policies in a computer
system. [10]
………………………..…END OF EXAMINATION………………………………….
Page 3 of 3