


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Class: Operating Systems; Subject: Computer Science and Engineering; University: Arizona State University - Tempe; Term: Fall 2007;
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Put Name on Every Page
1. (12) Introduction to operating systems Early in Chapter 1, SG&G say: “An operating system is similar to a government .” (a) (6) In general, what is it that an operating system provides that makes it like a government? Give an example. (b) (6) What negative characteristic do SG&G say an operating system has in common with a government? Give an example of this and state why it is relevant. 2. (10) Hardware Protection (a) (5) In order to make sure an operating system will perform correctly, modern computers provide dual mode operation, e.g., user and kernel modes, and define certain instructions such as halt and I/O instructions as 'privileged', that is, only allowed when the computer is in kernel mode. Why do operating systems that make use of these features provide system calls implemented by trap instructions? (b) (5) I/O is often “memory mapped”, i.e., done with loads and stores to and from control and status registers and data buffers. Given that ordinary loads and stores are not privileged instructions, explain how operating systems protect memory mapped I/O, i.e., how ordinary users are prevented from performing memory mapped I/O.
Put Name on Every Page
3. (25) Operating System Structure The Windows 2000 operating system has a layered, modular and client server design. Briefly, show how the Windows 2000 structure contains any two of these three features. Depending on which features you describe, you should include at least two examples of layers to support your argument that W2K is layered and/or at least two examples of modules to support your argument that W2K is modular and/or one example showing that W2K has a client-server design. HINT: You may find it easier to use simple partial sketches of the W2K structure to demonstrate your points.
Put Name on Every Page
6. (20) Threads (a) (10) Give two advantages that a user-level thread package has over kernel-managed threads. Notes: If you give more than two advantages only the first will be graded. Just saying faster or higher performance gets you zero points – you have to say why. (b) (10) Give two advantages that having threads managed by the kernel has over a user-level thread management package. Notes: If you give more than two advantages only the first will be graded. Just saying faster or higher performance gets you zero points – you have to say why. 7. (6)Context Switching It takes more time to switch between processes than to switch between threads. Name two things that, in general, must be changed in a process context switch that don’t get switched in a thread context switch. 8. (3 points extra credit) Programmer Productivity As discussed in class, decreasing system response time below one second for both graphic and classic keyboard/terminal user interfaces results in much greater reductions in the time it takes for programmers to perform computer transactions. What is the principal reason for this?