The operating system.

advertisement
1st stage2016
Lect.7
College of Computer Technology
The operating system.
The underlying hardware in some machines cannot be accessed directly by a program.
The operating system (OS) plays the role of mediating access to resources such as memory
and I/O facilities. Interactions with operating systems (OS) can take place in the form of a
code that causes the execution of a function that is part of the OS. These functions are called
system calls.
A personal computer can’t do anything useful unless it’s running an operating system—
a basic type of software that acts as a supervisor for all the applications, games, or other
programs you use. The operating system sets the rules for using memory, drives, and other
parts of the computer. But before a PC can run an operating system, it needs some way to
load the operating system from disk to random access memory (RAM). The way to do this is
with the bootstrap or simply to boot — a small amount of code that’s permanently a part of
the PC.
The 1960’s definition of an operating system is “the software that controls the
hardware”. However, today, due to microcode we need a better definition. We see an
operating system as the programs that make the hardware useable. In brief, an operating
system is the set of programs that controls a computer. Some examples of operating systems
are MS-DOS, Windows™, UNIX™, and Linux are the most familiar examples.
Operating Systems are resource managers. The main resource is computer hardware in
the form of processors, storage, input/output devices, communication devices, and data. Some
of the operating system functions are: implementing the user interface, sharing hardware
among users, allowing users to share data among themselves, preventing users from
interfering with one another, scheduling resources among users, facilitating input/output,
recovering from errors, accounting for resource usage, facilitating parallel operations,
organizing data for secure and rapid access, and handling network communications.
1st stage2016
Lect.7
College of Computer Technology
Objectives of Operating Systems
Modern Operating systems generally have following three major goals. Operating
systems generally accomplish these goals by running processes in low privilege and
providing service calls that invoke the operating system kernel in high-privilege state.

To
hide
details
of
hardware
by
creating
abstraction
An abstraction is software that hides lower level details and provides a set of higherlevel functions. An operating system transforms the physical world of devices,
instructions, memory, and time into virtual world that is the result of abstractions built
by the operating system. There are several reasons for abstraction.
First, the code needed to control peripheral devices is not standardized. Operating systems
provide subroutines called device drivers that perform operations on behalf of programs
for example, input/output operations. Second, the operating system introduces new
functions as it abstracts the hardware. For instance, operating system introduces the file
abstraction so that programs do not have to deal with disks. Third, the operating system
transforms the computer hardware into multiple virtual computers, each belonging to a
different program. Each program that is running is called a process. Each process views
the hardware through the lens of abstraction. Fourth, the operating system can enforce
security through abstraction.

To
allocate
resources
to
processes
(Manage
resources)
An operating system controls how processes (the active agents) may access resource
( passive entities ).

Provide
a
pleasant
and
effective
user
interface
The user interacts with the operating systems through the user interface and usually
interested in the “look and feel” of the operating system. The most important
components of the user interface are the command interpreter, the file system, on-line
1st stage2016
Lect.7
College of Computer Technology
help, and application integration. The recent trend has been toward increasingly
integrated graphical user interfaces that encompass the activities of multiple processes
on networks of computers.
One can view Operating Systems from two points of views: Resource manager and
Extended machines. From Resource manager point of view operating systems manage the
different parts of the system efficiently and from extended machines point of view operating
systems provide a virtual machine to users that is more convenient to use.
Download