





































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






































7.
7.
Understand the role of the operating system.
Understand the process of bootstrapping to load the operating system into memory.
List the components of an operating system.
Discuss the role of the memory manager.
Discuss the role of the process manager.
Discuss the role of the device manager.
Discuss the role of the file manager in an operating system.
Understand the main features of three common operating systems: UNIX, Linux and Windows NT.
After studying this chapter, the student should be able to:
7.
An operating system is complex, so it is difficult to give a simple universal definition. Instead, here are some common definitions:
An operating system is an interface between the hardware of a computer and the user (programs or humans).
An operating system is a program (or a set of programs) that facilitates the execution of other programs.
An operating system acts as a general manager supervising the activity of each component in the computer system.
7.
The operating system, based on the above definitions, provides supports for other programs. For example, it is responsible for loading other programs into memory for execution. However, the operating system itself is a program that needs to be loaded into the memory and be run. How is this dilemma solved? The solution is a two-stage process. A very small section of memory is made of ROM and holds a small program called the bootstrap program. When the computer is turned on, the CPU counter is set to the first instruction of this bootstrap program and executes the instructions in this program. When loading is done, the program counter is set to the first instruction of the operating system in RAM.
7.
To use computer system resources efficiently, multiprogramming was introduced. The idea is to hold several jobs in memory at a time, and only assign a resource to a job that needs it on the condition that the resource is available. Multiprogramming brought the idea of time sharing : resources could be shared between different jobs, with each job being allocated a portion of time to use a resource. Because a computer is much faster than a human, time sharing is hidden from the user—each user has the impression that the whole system is serving them exclusively.
7.
When personal computers were introduced, there was a need for an operating system for this new type of computer. During this era, single-user operating systems such as DOS (Disk Operating System) were introduced.
The need for more speed and efficiency led to the design of parallel systems : multiple CPUs on the same machine. Each CPU can be used to serve one program or a part of a program, which means that many tasks can be accomplished in parallel instead of serially. The operating systems required for this are more complex than those that support single CPUs.
7.
Today’s operating systems are very complex. An operating system needs to manage different resources in a computer system. It resembles an organization with several managers at the top level. Each manager is responsible for managing their department, but also needs to cooperate with others and coordinate activities. A modern operating system has at least four duties: memory manager , process manager , device manager and file manager.
7.
One of the responsibilities of a modern computer system is memory management. Although the memory size of computers has increased tremendously in recent years, so has the size of the programs and data to be processed. Memory allocation must be managed to prevent applications from running out of memory. Operating systems can be divided into two broad categories of memory management: monoprogramming and multiprogramming.
7.
Monoprogramming
In monoprogramming , most of the memory capacity is dedicated to a single program; only a small part is needed to hold the operating system. In this configuration, the whole program is in memory for execution. When the program finishes running, the program area is occupied by another program.
Figure 7.4 Monoprogramming
7.
Figure 7.6 Categories of multiprogramming
7.
Figure 7.7 Partitioning