Architecture: Operating System
Architecture: Operating System
O
hardware. An operating system is a software which performs all the basic tasks
like file management, memory management, process management, handling
input and output, and controlling peripheral devices such as disk drives and
printers.
Architecture
e can draw a generic architecture diagram of an Operating System which is as
W
follows:
Memory Management
emory management refers to management of Primary Memory or Main
M
Memory. Main memory is a large array of words or bytes where each word or
byte has its own address.
ain memory provides fast storage that can be accessed directly by the CPU. For
M
a program to be executed, it must be in the main memory. An Operating System
does the following activities for memory management −
.Keeps track of primary memory, i.e., what part of it is in use by whom, what
1
part is not in use.
.In multiprogramming, the OS decides which process will get memory when
2
and how much.
3.Allocates the memory when a process requests it to do so.
Processor Management
I n multiprogramming environment, the OS decides which process gets the
processor when and for how much time. This function is calledprocess
scheduling. An Operating System does the followingactivities for processor
management −
.Keeps tracks of processor and status of process. The program responsible for
1
this task is known astraffic controller.
Device Management:
.Keeps tracks of all devices. Program responsible for this task is known as the
1
I/O controller.
2.Decides which process gets the device when and for how much time.
4.De-allocates devices.
File Management:
file system is normally organized into directories for easy navigation and
A
usage. These directories may contain files and other directions.
An Operating System does the following activities for file management −
.Keeps track of information, location, uses, status etc. The collective facilities
1
are often known asfile system.
perating systems are there from the very first computer generation and they
O
keep evolving with time. In this chapter, we will discuss some of the important
types of operating systems which are most commonly used.
he users of a batch operating system do not interact with the computer directly.
T
Each user prepares his job on an off-line device like punch cards and submits it
to the computer operator. To speed up processing, jobs with similar needs are
batched together and run as a group. The programmers leave their programs
with the operator and the operator then sorts the programs with similar
requirements into batches.
ultiple jobs are executed by the CPU by switching between them, but the
M
switches occur so frequently. Thus, the user can receive an immediate response.
For example, in a transaction processing, the processor executes each user
program in a short burst or quantum of computation. That is, ifnusers are
present, then each user can get a time quantum. When the user submits the
command, the response time is in few seconds at most.
roblem of reliability.
P
Question of security and integrity of user programs and data.
Problem of data communication.
ith resource sharing facility, a user at one site may be able to use the
W
resources available at another.
Speedup the exchange of data with one another via electronic mail.
If one site fails in a distributed system, the remaining sites can potentially
continue operating.
Better service to the customers.
Reduction of the load on the host computer.
Reduction of delays in data processing.
eal-time systems are used when there are rigid time requirements on the
R
operation of a processor or the flow of data and real-time systems can be used
as a control device in a dedicated application. A real-time operating system must
have well-defined, fixed time constraints, otherwise the system will fail. For
example, Scientific experiments, medical imaging systems, industrial control
systems, weapon systems, robots, air traffic control systems, etc.