



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Semester 1 Repeat Examinations 2011/
Module Code: SOFT 7006
School: Mathematics & Computing
Programme Title: Bachelor of Science (Honours) in Software Development – Year 3 Bachelor of Science (Honours) in Software Development & Computer Networking – Year 2
Programme Code: KSDEV_8_Y KDNET_8_Y
External Examiner(s): Mr. Aidan.F. Quilligan Internal Examiner(s): Mr. G. McSweeney
Instructions: Answer four questions. All questions are worth equal marks.
Duration: 2 Hours
Sitting: Autumn 2012
Requirements for this examination:
Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the correct examination. If in doubt please contact an Invigilator.
(a) What is meant by deadlock? ( 2 Marks )
(b) Describe an example of how deadlock might occur. ( 4 Marks )
(c) What are the conditions for deadlock? ( 4 Marks )
(d) What is a reusable resource ( 3 Marks )
(e) A system with four processes and three resource types is characterised by the Total Resource Vector and Current Resource Allocation as follows:
Total Resource Vector
R1 R2 R 6 5 7
Current Resource Allocation
Calculate the available resource vector. ( 2 Marks )
(f) The following matrix describes the Total Resource Claims for each of the current processes. Is the system currently in a safe state? Explain how you derived your answer. ( 6 Marks )
(g) What is the name of the algorithm? ( 2 Marks )
(h) What is the major disadvantage of this algorithm? ( 2 Marks )
(a) With reference to process scheduling, distinguish between:
Long term scheduling Medium term scheduling Short term scheduling ( 6 Marks )
(b) Explain the difference between a pre-emptive and a non pre emptive scheduling algorithm. ( 2 Marks )
(c) What is the purpose of the dispatcher? ( 2 Marks )
(d) Consider the following set of processes:
Arrival Service P1 0 3 P2 2 4 P3 4 3 P4 6 2
Draw a time line to show the execution of each of these processes for the shortest process next scheduling algorithm. ( 4 Marks )
(e) Calculate the Turnaround Time and the Normalised Turnaround Time. ( 4 Marks )
(f) Explain what is meant by concurrency? ( 2 Marks )
(g) With reference to RAID, what is redundancy? ( 3 Marks )
(h) Which RAID level uses no redundancy? ( 2 Marks )
(a) In operating systems, what is the purpose of a semaphore? ( 2 Marks )
(b) Using pseudo-code, describe the wait() and signal() operations on semaphores. ( 6 Marks )
(c) What is the purpose of the wait() and signal() operations? ( 4 Marks )
(d) In the context of concurrency, what is meant by starvation? ( 2 Marks )
(e) Define mutual exclusion? ( 2 Marks )
(f) State the requirements for mutual exclusion. ( 5 Marks )
(g) Why is interrupt disabling an unsatisfactory solution to the mutual exclusion problem? ( 3 Marks )
(h) What is the name of the algorithm that solves the mutual exclusion problem? ( 1 Mark )