



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: Cycle Indicating, Process , Switch, Context Switches, Process Control Block, Fetch-Execute, Interrupt Handling, General , Mutual Exclusion Problem, Synchronisation Problem
Typology: Exams
1 / 5
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] Briefly explain what the PCB is used for. [2 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] [Total: 25 marks]
void wait( ) { //complete this }//end wait method
void signal ( ) { //complete this } //end signal method } //end class semaphore [4 marks]
Based on the code given, briefly explain the semaphore object. [2 marks]
(b) Several proposed software and hardware solutions to the mutual exclusion problem involve ‘busy waiting.’ Explain ‘busy waiting’ in this context. Fully explain how the use of a semaphore avoids the ‘busy waiting’ problem. [4 marks] Using pseudocode, explain how a semaphore can be used to solve the general mutual exclusion problem. [4 marks] Clearly indicate the semaphore’s initial value and justify your choice. [2 marks]
(c) Fully describe the producer/consumer problem. In the context of your description clearly explain the mutual exclusion and synchronisation problems. [9 marks] [Total: 25 marks]
(b) In virtual memory management, what are the two questions addressed by the ‘resident set management policy?’ [4 marks] Fully explain the following terms with respect to resident set management: (i) fixed allocation, variable scope; (ii) variable allocation, global scope; (iii) variable allocation, local scope. [3 marks]
(c) Assuming memory is managed using a paged virtual memory management scheme, outline^ the notion of a page fault and list and briefly describe^ the steps involved in the page fault handling routine. [9 marks] [Total: 25 marks]
(b) For the following disk track request queue, diagram and calculate the head movement required under TWO of the following disk scheduling algorithms. Request queue: 27 129 110 186 147 41 10 64 120 Where necessary assume that the disk head is initially at track 100, is moving toward track 0, and maximum track number is 200. [6 marks] (i) Shortest seek time first; (ii) Scan; (iii) C-Look. For both algorithms chosen, briefly discuss their fairness and efficiency. [4 marks]
(c) Fully describe the three methods of disk space allocation: contiguous, linked (or chained), and indexed. [6 marks] With the aid of a diagram, fully describe (^) the method of disk space allocation used in UNIX. Include a brief discussion^ of its advantages and disadvantages in your description. [7 marks] [Total: 25 marks]