Midterm-Solution

Midterm-Solution - Sample Solutions to Midterm Quiz Part I...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Sample Solutions to Midterm Quiz Part I MC and T/F Questions (15 points) 1 2 3 4 5 6 7 8 9 10 C F D T F A F T B F 11 12 13 14 15 T C T D D Part II Short Questions (20 points ) Question 1 (4 points) The main cause of starvation (indefinite postponement) is due to the use of priority policy in the scheduling algorithms. A high priority process will always run before a low priority process. If there always have high priority processes (comes and goes), the low priority processes will never be scheduled they will experience starvation. For the above scheduling algorithms, only SPF and MLFQ may suffer with starvation as they have the priority policy in used; while FIFO and RR do not have the starvation issue as all processes are scheduled as according to their arrival order. Question 2 (4 points) (a) We should obtain x = 6 only in both processes as the variable x is not shared by the two processes.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/01/2010 for the course CS 2342 taught by Professor Dr during the Spring '10 term at HKU.

Ask a homework question - tutors are online