Operating Systems And Design Question Paper
Operating Systems And Design
Course:Bachelor Of Science Computer Science
Institution: Masinde Muliro University Of Science And Technology question papers
Exam Year:2012
MASINDE MULIRO UNIVERSITY OF
SCIENCE AND TECHNOLOGY
(MMUST)
SECOND YEAR SECOND SEMESTER EXAMINATION
FOR THE DEGREE OF BSC
IN COMPUTER SCIENCE
COURSE CODE: CSC221
COURSE TITLE:OPERATING SYSTEMS AND DESIGN
DATE:Tesday 27th April 2012 Time 9.00am-11.00am
Instruction to candidates
Answer QUESTION ONE and ANY OTHER TWO.
QUESTION ONE(COMPULSORY)(30MARKS)
a)What is operating system?Discuss four major function of an operating system.(6marks)
b)Each program running on Unix system has access to 3 standard file descriptors.Describe them.(4marks)
c)State basic system calls for file input/output(I/O)(3marks)
d)Distinguish the following terms
(i)critical section and Race condition(5marks)
(ii)process and thread(4marks)
e)What are five major activities of an operating system in regard to process management(5marks)
f)What is process synchronization(3marks)
QUESTION TWO(20MARKS)
a)Distinguish between system calls and system programs?(4marks)
b)List and explain ANY TWO operating system structures(8marks)
c)Illustrate how race-condition can be prevented in concurrent processing(8marks)
QUESTION THREE(20MARKS)
a)What is the differences between trap and interrupt(4marks)
b)Describe the advantages of distributive system over centralized system(5marks
)
c)Describe different kinds of process interaction(6marks)
d)Explain how to use semaphores to ensure mutual exclusion for critical section(5marks)
QUESTION THREE(20MARKS)
a)Describe the Inter-Process Communication(IPC)(5marks)
b)A barber shop consist of waiting room with N chairs, and the barber room containing the barber chair. If there is no customers to be served the barber goes to sleep. If the barber is busy, but the chairs are available then the customer sits in one of the free chairs. If the barber is a sleep then the customer wakes up the barber.
Write an algorithm for above synchronization problem using semaphores.(15marks)
More Question Papers
Exams With Marking Schemes
Popular Exams
Mid Term Exams
End Term 1 Exams
End Term 3 Exams
Opener Exams
Full Set Exams
Return to Question Papers