Question
Practice Exercises 1.1 What are the three main purposes of an operating system? 1.2 We have stressed the need for an operating system to make
Practice Exercises
-
1.1 What are the three main purposes of an operating system?
-
1.2 We have stressed the need for an operating system to make efficient use of the computing hardware. When is it appropriate for the operating system to forsake this principle and to waste resources? Why is such a system not really wasteful?
-
1.3 What is the main difficulty that a programmer must overcome in writing an operating system for a real-time environment?
-
1.4 Keeping in mind the various definitions of operating system, consider whether the operating system should include applications such as web browsers and mail programs. Argue both that it should and that it should not, and support your answers.
Practice Exercises 49
50 Chapter 1 Introduction
-
1.5 How does the distinction between kernel mode and user mode function
as a rudimentary form of protection (security) system?
-
1.6 Which of the following instructions should be privileged?
-
Set value of timer.
-
Read the clock.
-
Clear memory.
-
Issue a trap instruction.
-
Turn off interrupts.
-
Modify entries in device-status table.
-
Switch from user to kernel mode.
-
Access I/O device.
-
-
1.7 Some early computers protected the operating system by placing it in a memory partition that could not be modified by either the user job or the operating system itself. Describe two difficulties that you think could arise with such a scheme.
-
1.8 Some CPUs provide for more than two modes of operation. What are two possible uses of these multiple modes?
-
1.9 Timers could be used to compute the current time. Provide a short description of how this could be accomplished.
-
1.10 Give two reasons why caches are useful. What problems do they solve? What problems do they cause? If a cache can be made as large as the device for which it is caching (for instance, a cache as large as a disk), why not make it that large and eliminate the device?
-
1.11 Distinguish between the client server and peer-to-peer models of distributed systems.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started