Fa99 midterm 1

Fa99 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/10 University of California, Berkeley College of Engineering Computer Science Division – EECS Fall 1999 Anthony D. Joseph Midterm Exam #1 September 29, 1999 CS162 Operating Systems Your Name: SID and 162 Login: 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. If there is something in a question that you believe is open to interpretation, then please ask us about it! Good Luck!! Problem Possible Score 1 12 2 15 3 9 4 24 5 30 6 10 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 Fall 1999 Midterm Exam #1 September 29, 1999 Page 2/10 1. Threads – Good or bad? (12 points total): a. (6 points) List two reasons why overuse of threads is bad (i.e., using too many threads for different tasks). Be explicit in your answers. i) ii) b. (6 points) List two reasons why threads are useful/important. i) ii)
Background image of page 2
September 29, 1999 Page 3/10 2. (15 points) For each of the following thread state transitions, say whether the transition is legal and how the transition occurs or why it cannot. Assume Mesa-style monitors. a. Change from thread state BLOCKED to thread state RUNNING . b. Change from thread state RUNNING to thread state BLOCKED . c. Change from thread state RUNNABLE to thread state BLOCKED . 3. (9 points) You're hired by AB Computers to improve the performance of their system. They point out that their applications only use 10 of the CPU's 32 registers; so to improve the performance of the applications, they suggest that you change the OS's context switch routine so it only saves the 10 registers used by the applications. Assume that you can correctly change the context switch routine. Is this a good or bad
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 homework help was uploaded on 01/30/2008 for the course CS 162 taught by Professor Kubiatowicz during the Fall '02 term at Berkeley.

Page1 / 10

Fa99 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