


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: Spring 2006;
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



Put Name on Every Page
1. (8) Introduction to operating systems Early in Chapter 1, SG&G say: “An operating system is similar to a government .” (a) (3) What is it that an operating system provides that makes it like a government? (b) (5) What negative characteristic do SG&G say an operating system has in common with a government? Give an example of this. 2. (15) Interprocess Communication (a) (5) Give an advantage shared memory communication has over message passing. Note: Just saying faster gets you no points. You have to say why. (b) (5) Give an advantage message passing has over shared memory communication. (c) (5) Synchroneity varies in message passing mechanisms. For example, depending on the implementation, message send primitives can block awaiting different events. List 3 different events in order of increasing blocking times that send primitives could block for. GIANT HINT: A good way to answer this question is to start off by saying “The send can block until…”. You should assume the system is distributed.
Put Name on Every Page SPRING 2006 (6:40 CLASS)
3. (20) Hardware Protection State one way that the following two types of hardware assistance help in the writing of an operating system that can operate without interference from undebugged or malicious user programs. (10) (a) kernel/user mode and privileged instructions (10) (b) memory protection (and associated exception generating/handling hardware) 4. (9) Real-Time Operating Systems Explain why hard real-time systems almost never have demand-paged virtual memory management?
Put Name on Every Page SPRING 2006 (6:40 CLASS)
6. (18 + 3 points extra credit) Virtual Machines (a) (10) Why is a just-in-time compiler useful for executing Java programs? Be specific – just saying it makes them run faster gets you zero points! (b) (3) What other software framework discussed in the text that provides a virtual machine as an intermediary between the executing program and the underlying architecture has a just-in-time compiler? (c) (5) As discussed in class, a way of looking at a computer system is as a set of virtual machines, each one supported by a translator or interpreter which maps its input to input suitable to the layer below it. For example, the highest layer discussed was a C or FORTRAN machine that was supported by a compiler that translated C or FORTRAN instructions into assembler language instructions that are suitable for input to an assembler language machine in the layer below it. Below the assembler language machine there is an operating system machine. What is the input to the operating system machine and what is its output? (d) (3 pts. extra credit) Designing a virtual machine monitor is much easier if the underlying CPU architecture is virtualizable, that is if it supports running the virtual machine’s privileged (operating system kernel) code and unprivileged code in the CPU’s unprivileged mode, while the Virtual Machine Monitor runs in privileged mode. The IBM 370 was virtualizable but the Intel x86 architecture is not. Use an x86 popf or an x86 instruction that can read the code segment register to show why this is so. HINT: something different happens and the operating system will see different things when it is a guest operating system running in unprivileged user mode than what happens and it will see when it is an operating system kernel running in privileged mode.