Docsity

operating system note unit 1 bca 2023, Study notes of Operating Systems

Partial preview of the text

Download operating system note unit 1 bca 2023 and more Study notes Operating Systems in PDF only on Docsity!

Operating System Overview

Unit - 1

Operating System

An operating system is a program on which

application programs are executed and acts

as an communication bridge (interface)

between the user and the computer

hardware.

Functions of OS:

1) Security –

The operating system uses password protection to

protect user data. It also prevents unauthorized access

to programs and user data.

2) Memory Management –

The operating system manages the Primary Memory or

Main Memory. Main memory is made up of a large array

of bytes where each byte is assigned a certain address.

Main memory is a fast storage and it can be accessed

directly by the CPU. For a program to be executed, it

should be first loaded in the main memory. An Operating

System performs the following activities for memory

management: It keeps tracks of primary memory, i.e.,

which bytes of memory are used by which user program.

In multi programming, the OS decides the order in which

process are granted access to memory, and for how long.

It allocates the memory to a process when the process

requests it and deallocates the memory when the process

3) Processor Management –

In a multi programming environment, the OS

decides the order in which processes have access to

the processor, and how much processing time each

process has. This function of OS is called process

scheduling. An Operating System performs the

following activities for processor management.

Keeps tracks of the status of processes. The

program which perform this task is known as traffic

controller. Allocates the CPU that is processor to a

process. De-allocates processor when a process is

no more required.

5) File Management –
A file system is organized into directories for efficient or
easy navigation and usage. These directories may contain
other directories and other files. An Operating System
carries out the following file management activities. It
keeps track of where information is stored, user access
settings and status of every file and more… These
facilities are collectively known as the file system.
6) Error detecting aids –
Operating system constantly monitors the system to
detect errors and avoid the malfunctioning of computer
system.
7) Control over system performance –
Monitors overall system health to help improve
performance. Records the response time between service
requests and system response to have a complete view of
the system health.

8) User interface :- OS allows you to

communicate with your computer.

9) Storage management:- OS directs

permanent data storage.

10)Coordination between other software and

users:- Coordination and assignment of

compilers, interpreters, assemblers and other

software to the various users of the computer

systems.

Evolution(Generation) of Operating Systems

1)The First Generation (1940's to early

1950's) :-

When electronic computers were first

introduced in the 1940's they were created

without any operating systems. All

programming was done in absolute machine

language, often by wiring up plug boards to

control the machine's basic functions. These

generation computers were generally used to

solve simple math calculations, operating

systems were not necessarily needed.

2) The Second Generation (1955-1965)

The first operating system was introduced in the

early 1950's, it was called GMOS and was created

by General Motors for IBM's machine the 701.

Operating systems in the 1950's were called single-

stream batch processing systems because the data

was submitted in groups. These new machines were

called mainframes, and they were used by

professional operators in large computer rooms.

Since there was such as high price tag on these

machines, only government agencies or large

corporations were able to afford them.

4) The Fourth Generation (1980-Present Day)

 The fourth generation of operating systems saw the creation of personal

computing. Although these computers were very similar to the minicomputers

developed in the third generation, personal computers cost a very small fraction

of what minicomputers cost. A personal computer was so affordable that it

made it possible for a single individual could be able to own one for personal

use while minicomputers where still at such a high price that only corporations

could afford to have them. One of the major factors in the creation of personal

computing was the birth of Microsoft and the Windows operating system.

 The windows Operating System was created in 1975 when Paul Allen and Bill

Gates had a vision to take personal computing to the next level. They introduced

the MS-DOS in 1981 although it was effective it created much difficulty for

people who tried to understand its cryptic commands. Windows went on to

become the largest operating system used in technology today with releases of

Windows 95, Windows 98, Windows XP, Windows-7 Windows-10 etc. Along with

Microsoft, Apple is the other major operating system created in the 1980's.

Steve Jobs, co-founder of Apple, created the Apple Macintosh which was a huge

success due to the fact that it was so user friendly. Windows development

throughout the later years were influenced by the Macintosh and it created a

strong competition between the two companies. Today all of our electronic

devices run operating systems, from our computers and Smartphone, to ATM

machines and motor vehicles. And as technology advances, so do operating

systems.

Types of OS:

1) Sequential OS: In Sequential OS the records

are accessed in some sequence, i.e., the

information in the file is processed in order,

one record after the other. Example:

Compilers usually access files in this fashion.

3) Multiprogramming

 In a multiprogramming system there are one or more

programs loaded in main memory which are ready to

execute. Only one program at a time is able to get the CPU

for executing its instructions while all the others are

waiting their turn.

The main idea of multiprogramming is to maximize the use

of CPU time. Indeed, suppose the currently running process

is performing an I/O task. Then, the OS may interrupt that

process and give the control to one of the other in-main-

memory programs that are ready to execute (i.e. process

context switching ). In this way, no CPU time is wasted by

the system waiting for the I/O task to be completed, and a

running process keeps executing until either it voluntarily

releases the CPU or when it blocks for an I/O operation.

Therefore, the ultimate goal of multiprogramming is to keep

the CPU busy as long as there are processes ready to

execute.

4) Multiprocessing/Parallel Processing

Multiprocessing sometimes refers to

executing multiple processes (programs) at

the same time. Multiprocessing refers to

the hardware (i.e., the CPU units) rather than

the software (i.e., running processes). If the

underlying hardware provides more than one

processor then that is multiprocessing.

6) Real Time operating System

 A real-time OS are those in which the time interval

required to process and respond to inputs is so

small. The response time is very less.

 Real-time systems are used when there are rigid

time requirements on the operation of a processor

. A real-time operating system must have well-

defined, fixed time constraints, otherwise the

system will fail. For example, Scientific

experiments, industrial control systems, weapon

systems, robots, air traffic control systems, etc.

Types of real-time operating systems.

a) Hard real-time systems

 Hard real-time systems guarantee that critical tasks complete

on time. In hard real-time systems, secondary storage is

limited or missing and the data is stored in ROM.

 Example: In an aircraft flight control system or automotive

braking system and many other cases those assumptions can

usually be satisfied so that all the deadlines will be met.

b) Soft real-time systems

 Soft real-time systems are less restrictive. A critical real-time

task gets priority over other tasks and retains the priority

until it completes.

Example: Web browser- We request for certain URL, it takes

some time in loading the page. If the system takes more than

expected time to provide us with the page, the page obtained

is not considered as invalid, we just say that the system's

performance wasn't up to the mark (system gave low

performance!).