Get premium membership and access revision papers, questions with answers as well as video lessons.

Csc 223: Operating Systems Question Paper

Csc 223: Operating Systems 

Course:Bachelor Of Science In Information Technology

Institution: South Eastern Kenya University question papers

Exam Year:2014




SOUTH EASTERN KENYA UNIVERSITY


UNIVERSITY EXAMINATIONS 2013/2014

SECOND YEAR SECOND SEMESTER EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE (INFORMATION TECHNOLOGY)


CSC 223: OPERATING SYSTEMS


DATE: 17Th/12/2013 TIME: (2 HOURS)
INSTRUCTIONS TO CANDIDATES
1. Section A(Compulsory)
2. Answer ANY TWO questions from section B




SECTION A (30 Marks) - Compulsory
Question One
a) Explain the following as used in operating systems:
(i) Virtual memory;
(ii) Seek time;
(iii) Thrashing. (3 marks)
b) Using an illustration, explain how Banker’s algorithm handles deadlocks.
(4 marks)
c) The table below shows four processes and their CPU burst times.
Process Arrival Time cpu Burst
P1 0 20
P2 1 5
P3 2 15
P4 3 10

(i) Draw a Gantt chart to represent the execution of the processes using the round robin scheduling algorithm (use time slice of 4 units ) (4 marks)
(ii) Calculate the average waiting time for the above processes. (2 marks)
d) Direct memory access is used to enhance the performance of a computer .Using a diagram describe how this is achieved in an input /output operation. ( 5 marks)
e) Suppose that a disk drive has 200 tracks numbered 0 through 199. The drive is currently servicing a request at tracks50 and the previous request was at track 47. The queue of pending requests is: 95, 180, 34, 119, 11, 123, 62, and 64in that order. Starting from the current head position determine the total distance that the disk arm moves to satisfy all the pending requests for each of the following disk scheduling algorithms.
(i) Shortest Seek-Time First(SSTF) (3 marks)
(ii) SCAN (3 marks)
f) Describe two file allocation methods. (2marks)
g) Differentiate between paging and segmentation memory allocation schemes. (4 marks)


SECTION B (40 Marks): Answer Any Two Questions
Question Two
(a) Describe the following types of operating systems stating the most appropriate application areas.
(i) Time-sharing systems
(ii) Batch processing systems
(iii) Distributed systems
(iv) Real-time systems (8 marks)

(b) An operating system contains 3 resource classes (R1,R2, R3). The number of resource units in these classes is 7, 7 and 10 respectively. The current resource allocation state is shown below:
Allocated resources Maximum requirements
R1 R2 R3 R1 R2 R3
P1 2 2 3 3 6 8
P2 2 0 3 4 3 3
P3 1 2 4 3 4 4

(i) Comment on the current state. (3 marks)
(ii) Determine whether request made by process P1 (1, 1, 0) can be granted. (3 marks)
c) With the aid of a diagram, describe the layered approach tooperating systemdesign.
(6 marks)

Question Three
a) Explain the following terms as used in operating systems:
(i) Race condition
(ii) Semaphore (4 marks)
b) Describe four conditions that must be sufficient in order for deadlock to occur.
(8 marks)
c) With the aid of a diagram, explain the five-state process model. (8 marks)

Question Four
a) Describe four goals of input/output software. (8 marks)
b) Explain the producer consumer problem as an approach to mutual exclusion.(6 marks)
c) Differentiate between the following: (6 marks)
(i) Sequential and direct file access methods
(ii) Turnaround time and Throughput
(iii) Character devices and Block devices


 

Csc 223: Operating Systems question paper





More Question Papers


Popular Exams



Return to Question Papers