Fall 1997 Midterm Exam

Fall 1997 Midterm Exam - Fall 1997 Midterm Exam Take your...

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

View Full Document Right Arrow Icon
Fall 1997 Midterm Exam Take your time and read each question carefully. Some have multiple parts. Be sure to answer each part. Also, be sure to put your name on each exam page. 1. Fill in the blanks in the following short statements. (20 pts) (a) A program runs in [ protected ] mode when it executes protected instructions. (b) [ save registers ] and [ restore registers ] are the first and last things that are executed during an interrupt service. (c) [ non-preemptive ] scheduling switches from one process to another only when the running process terminates or blocks. In contrast [ preemptive ] scheduling uses a clock interrupt to switch from one process to another after a time slice. (d) These are four of the contents of the PCB: [ PC, registers ], [ memory management information ], [ accounting information ], and [ I/O status ]. (e) Most of the tasks in a computer are [ I/O ] bound. (f) Predicted SJF uses [ past behavior ] to estimate the length of the next processing burst. (g) [ starvation ] is a condition that happens when a process waits for something that may never happen. 2. Consider the following C functions and data declarations: (20 pts)
Background image of page 1

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

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

This note was uploaded on 01/30/2012 for the course CS 252 taught by Professor Gustavorodriguez during the Fall '11 term at Purdue.

Page1 / 5

Fall 1997 Midterm Exam - Fall 1997 Midterm Exam Take your...

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

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