Midterm 1 | Operating Systems 1999 | CSE 430, Exams of Operating Systems

Material Type: Exam; Class: Operating Systems; Subject: Computer Science and Engineering; University: Arizona State University - Tempe; Term: Unknown 1989;

Typology: Exams

Pre 2010

Uploaded on 09/02/2009

koofers-user-sjm
koofers-user-sjm 🇺🇸

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSE 430/598
FALL 99
MIDTERM 1
NAME
(25) 1. (7) (a) Place a P in the space next to each of the following instructions if it should be
privileged and an NP if the instruction need not be privileged.
turn off interrupts
turn on timer interrupts
switch from kernel to user mode
switch from user to kernel mode
write to kernel memory
read value of the timer
divide contents of two registers and
place quotient in a third register
(18) (b) For each instruction in part (a) that you said should be privileged, give one reason why
the instruction should be privileged. Note: your answer needs to be specific. For example,
simply saying that the operating system will be protected will not do. You need to say why or
how.
pf3
pf4

Partial preview of the text

Download Midterm 1 | Operating Systems 1999 | CSE 430 and more Exams Operating Systems in PDF only on Docsity!

CSE 430/

FALL 99

MIDTERM 1

NAME

(25) 1. (7) (a) Place a P in the space next to each of the following instructions if it should be privileged and an NP if the instruction need not be privileged. turn off interrupts turn on timer interrupts switch from kernel to user mode switch from user to kernel mode write to kernel memory read value of the timer divide contents of two registers and place quotient in a third register (18) (b) For each instruction in part (a) that you said should be privileged, give one reason why the instruction should be privileged. Note: your answer needs to be specific. For example, simply saying that the operating system will be protected will not do. You need to say why or how.

CSE 430/598 MIDTERM 1 FALL 99 NAME

(15) 2. (a) (5) As pointed out in class, there is a very important difference between the virtual machine presented by the IBM Virtual Machine OS and the virtual machine presented by Java. What is this difference? (b) (5) Give an advantage available when using the IBM VM operating system that is essentially not available on the Java virtual machine. (c) Give an advantage when using the Java virtual machine that is essentially not available when using the IBM VM operating system

  1. (10) (a) (5) 4What are the two main purposes of an operating system? Note: Full sentences are required here for each purpose– not just a word or two. (b) (5) Which of these purposes is more important nowadays? Why has this changed from the early days of computers?

CSE 430/598 MIDTERM 1 FALL 99 NAME

  1. (10) (a) (5) In multithreaded operating systems some items are typically contained in a thread control block and some in a process control block. List three examples of each. (b) (5) What was the principal reason for inventing threads, that is, what two things can be done using multiple threaded processes that cannot both be done with a single threaded process or a finite state machine? Note: A single word is not sufficient for each answer. You need to give a sentence explaining each. (10) 6. (a) What is medium term scheduling? Why is it needed? How is it typically implemented in modern operating systems? (10) 7. What is meant by designing operating system modules in such a way that policy and mechanism are separated? Give an example.