


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
These are the Old Exam of Operating Systems which includes Secrecy of Users, Passwords, Environmental Variable Path, Partitioning a Disk, Criteria for File Organisation etc. Key important points are: Direct Memory Access, Transition Diagram, Ready, Running, Ready-Suspend, Blocked-Suspend, Fetch-Execute, Machine Instructions Are Atomic, Aid Of Pseudocode, Semaphore Avoid, Busy
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



(NFQ - Level 6)
Answer ANY FOUR questions. All questions carry equal marks.
Examiners: Ms. Mairead Meagher Ms. A. Brown Mr. P. Rothwell.
(b) Summarise the typical contents of a process control block (PCB). [4 marks]
(c) With the aid of a diagram, fully describe the ‘fetch-execute’ cycle indicating when interrupts are handled. [4 marks] Briefly outline the important steps in interrupt handling. [5 marks] “Machine instructions are atomic.” Explain this statement with reference to your diagrams. [2 mark] [Total: 25 marks]
(b) Fully describe the producer/consumer problem. In the context of your description clearly explain the mutual exclusion and synchronisation problems. [9 marks]
(c) Write pseudocode to describe a solution to the bounded-buffer producer/consumer problem using semaphores. (Assume the necessary methods and classes for semaphores are defined.) [ marks] Fully explain how (^) the code you have given solves the problems of mutual exclusion and synchronisation. [5 marks] [Total: 25 marks]
(b) Write pseudocode to fully describe the Banker’s algorithm (and its associated ‘safety’ algorithm) for deadlock avoidance. [5 marks] Fully explain your code. [6 marks]
(c) Based on the following information, show and explain how the banker’s algorithm you described can be used to determine if the following resource request from process 1 is granted: request 1 = (0, 0, 1) [8 marks]
Process Allocation Max Available type => X Y Z X Y Z X Y Z 0 1 0 0 3 2 2 0 1 2 1 6 1 2 6 1 3 2 2 1 1 3 1 4 3 0 0 2 4 2 2
[Total: 25 marks]
(b) Input/Output buffering is introduced to increase the efficiency of i/o operations. With the aid of diagrams, fully explain the operation of buffering for input. [5 marks]
(c) Summarise the evolution of the input/output function in processor architecture from ‘direct processor control’ to ‘i/o processor’. [6 marks] Explain how this specialisation increases the efficiency of the CPU use. [4 marks] Briefly describe (^) the operation of the Direct Memory Access (DMA) function. [4 marks] [Total: 25 marks]