midtermA - Name: CIS 586 Midterm March 6th , 2008 Answer...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Name: CIS 586 Midterm March 6 th , 2008 Answer all questions in the space provided. You may write on the back if you need more room. Closed book, closed notes, closed neighbor. Please write your name on each page. Question 1 /10 pts Question 2 /5 pts Question 3 /10 pts Question 4 /15 pts Question 5 /15 pts Question 6 /15 pts Question 7 /20 pts Question 8 /10 pts Total / pts 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Question 1) a) (5) Explain the difference between user mode and kernel mode . b) (5) How does the system switch from user mode to kernel mode . Question 2) (5) Why do all operating systems (that run on real hardware) require assembly language routines. Question 3) (10) What are the main disadvantages of user level threads? 2
Background image of page 2
Question 4) (15) The below code synchronizes cars passing over a bridge. The bridge is only wide enough for one-way traffic, and can only support 5 cars a time. While traffic is passing from one-side the traffic on the other side has to wait. Semaphore mutex = new Semaphore(1);
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 8

midtermA - Name: CIS 586 Midterm March 6th , 2008 Answer...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online