Sp99 midterm 1 - University of California, Berkeley College...

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

View Full Document Right Arrow Icon
Page 1/1 University of California, Berkeley College of Engineering Computer Science Division – EECS Spring 1999 Anthony D. Joseph Midterm Exam March 3, 1999 CS162 Operating Systems Your Name: SID: TA: Discussion Section: General Information: This is a closed book examination. You have two hours to answer as many questions as possible. The number in parentheses at the beginning of each question indicates the number of points given to the question; there are 100 points in all. You should read all of the questions before starting the exam, as some of the questions are substantially more time consuming. Write all of your answers directly on this paper. Make your answers as concise as possible (you needn't cover every available nano-acre with writing). If there is something in a question that you believe is open to interpretation, then please go ahead and interpret, but state your assumptions in your answer. Good Luck!! Problem Possible Score 1 13 2 24 3 18 4 30 5 15 Total 100
Background image of page 1

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

View Full DocumentRight Arrow Icon
CS 162 Spring 1999 Midterm Exam March 3, 1999 Page 2/2 1. Threads (13 points total): a. (6 points) What state does a thread share with other threads in a process and what state is private/specific to a thread? Be explicit in your answer. i) Contents of memory (global variables, heap) ii) I/O state (file system) iii) CPU registers (including, program counter) iv) Execution stack b. (7 points) Draw a picture of the three states of a thread and label the transitions between the states: 2. Context switching and CPU scheduling (24 points total): a. (3 points) What state is saved on a context switch between threads? CPU registers (including, program counter and stack pointer) b. (6 points) List two reasons why Nachos disables interrupts when a thread/process sleeps, yields, or switches to a new thread/process?
Background image of page 2
March 3, 1999 Page 3/3
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 / 10

Sp99 midterm 1 - University of California, Berkeley College...

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