Information Technology Reference
In-Depth Information
Exercises
For convenience, the exercises from the body of the chapter are repeated here.
1. Suppose a computer system and all of its applications are completely bug
free. Suppose further that everyone in the world is completely honest and
trustworthy. In other words, we do not need to consider fault isolation.
a. How should the operating system allocate time on the processor?
Should it give all of the processor to each application until it no
longer needs it? If there are multiple tasks ready to go at the same
time, should it schedule the task with the least amount of work to
do or the one with the most? Justify your answer.
b. How should the operating system allocate physical memory between
applications? What should happen if the set of applications do not
all fit in memory at the same time?
c. How should the operating system allocate its disk space? Should the
first user to ask be able to grab all of the free space? What would
the likely outcome be for that policy?
2. Now suppose the computer system needs to support fault isolation. What
hardware and/or operating support do you think would be needed to ac-
complish this goal?
a. For protecting an application's data structures in memory from being
corrupted by other applications?
b. For protecting one user's disk les from being accessed or corrupted
by another user?
c. For protecting the network from a virus trying to use your computer
to send spam?
3. How should an operating system support communication between appli-
cations?
a. Through the file system?
b. Through messages passed between applications?
c. Through regions of memory shared between the applications?
d. All of the above? None of the above?
4. How would you design combined hardware and software support to provide
the illusion of a nearly infinite virtual memory on a limited amount of
physical memory?
Search WWH ::




Custom Search