midtermB - 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) Why are modern systems split into user mode and kernel mode? b) (5) What do system calls, exceptions and interrupts have in com- mon? Question 2) (5) Explain what happens in a context switch and what language re- quirements a context switch has. Question 3) (10) What are the main differences between user level threads and kernel 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.

This note was uploaded on 04/02/2012 for the course CIS 486 taught by Professor Mcsweeney during the Spring '10 term at Syracuse.

Page1 / 8

midtermB - 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