midterm1sol

midterm1sol - Name: CIS 486 Midterm March 9th , 2010 Answer...

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

View Full Document Right Arrow Icon
Name: CIS 486 Midterm March 9 th , 2010 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 / 15 pts Question 2 / 15 pts Question 3 / 15 pts Question 4 / 10 pts Question 5 / 25 pts Question 6 / 20 pts Total / 100 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) (15) For the image below: (a) (5) Explain each of the three states in the diagram. Ready: A process that is “ready” to run. Usually kept in the ready list of the scheduler. A process which is a candidate of the scheduling decision at the time of the next scheduling task . Running: A process which is currently on the CPU and executing instructions. There can be only one such process on a single core machine. Blocked: A process which is unable to run, as it is either waiting for an I/O, synchronization or some other system event (b) (5) Explain what each edge in the diagram represents. (I know they are processes transitions, explain transition specifically). 1: A process comes off the CPU and is put to sleep. 2: A process comes off the CPU and is put back on the ready list. 3: A process is selected to run. 4: A process is unblocked and placed back on the ready queue. (c) (5) For each edge give a specific example of a time/event that would cause a process to along its path. 1: Process calls “readFile” blocking system call. 2: A process calls yield or is pre-empted from the CPU. 3: The scheduling algorithm chooses this process. 4: A hard disk interrupt wakes up a sleeping process. 2
Background image of page 2
Question 2) (15) Examine the following C program. #include
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 / 9

midterm1sol - Name: CIS 486 Midterm March 9th , 2010 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