Introduction to Operating Systems
Introduction to Operating Systems
Introduction to
Operating System
Syllabus
Operating system, Evolution, Generations mainframe
systems - Batch, Multi programmed, Multitasking, Time
sharing, Desktop, Multiprocessor systems, Distributed
Systems, Clustered systems, Real time systems. Recernt
operating systen characteristics.
Statistical Analysis
Operating System (MSBTE) 1-14 Introduction to Operating System Operaling System(MSBTE) 1-15 Introduction to Operating
Batch monitors functions
area as resident area of monitor +tranaient ares
Batch monitor keeps control On processing of monitor.
environment Sharing and protection
3)
These functions can be categorized into three main
tasks : These are the major function which OS provides
for the purpose of multi user system. The sharing
1
Scheduling of the data can be done by choosing an
2 Memory appropriate operating system. This results in
3. Sharing and protections. reducing the cost of hardware and processing
time.
The first two functions were done before the execution During the job processing the resources. are
of program and third one was done after job was allocated or de-allocated sequentially.
executed
1)
The protections functions are more complicated
Scheduling than sharing.
Scheduling is the activity of determining which In short in Batch systemns :
service request should be handled next by a User does not interact with the system
server. Here service request means the user jobs Jobs with similar needs were grouped into
& server is nothing but CPU.
2.
Batches.
Batch processing uses FCFS- first come first 3 Reads a stream of jobs operates on it and
Serve scheduling criterion. i.e. the job which generates output.
comes first is executed first. i.e. as per the job
sequence jobs are executed
First come, first served ie. job which comes
first gets execute first.
2) Memory management 5. It can use Spooling technique.
During batch processing operations, memnory is O.S.
divided into two parts called System area and
User
User area. An issue of partitioning of memory for Prograrm
system area and user area is handled by an Area
Operating System (MSBTE) 1-26 introducticn to Operating System technology to make a single virtual or logieal server.
These functions may be different. The main advantages From a technology point of view, cluster architectures
of distributed systems are Resource Sharing. If number provide the opportunity for system architects to link
of sites or machines is connected to each other then together powerful UNIX systems into even more
user can share the resources of other terminal or site. powerful servers. And, since there are multiples of each
Speed of computation : Due to the partitioned of the component in a cluster, it is possible for the virtual
computation the work gets done in short period so st server to continue to process information when a
the highest rate
components fails or when system operators cho0se to
Reliability : If any machine or node gets fail, the other maintain one component of the cluster.
machines can work continuous.
Cluster architectures are not new to information
Communication:Communication among the differcnt.
system planners. Since the early 1980s, several
systems is possible. It may be electronic messaging or
fle transfer or exchange of programs or data. suppliers have offered cluster sys tems based on
In short proprietary operating environments.
1 Processors DO NOT share the memory or the Best known is Digital Equipment Corporation's (now
clock. Compaq) use of clustering to provide scalability and a
2. Each processor has its own memory uniform application environment for its VAX amily of
3 Loosely coupled systems give the impression that computers.
there isasingle OS controlling the network. The cluster architecture is one of several ways to
Distribute the computation among several
exploit parallel processing - the harnessing of several
physical locations. processors to work on one or more workloads. Other
6
Loosely coupled system - Each processor has its
own Local memorv: processors communicate with parallel approaches include symmetric multiprocessing
one another through various communications (SMP), non uniform memory access (NUMA) and
lhnes, such as high speed Buses or telephone massively parallel processing (MPP)., which are
lines. different methods ained at building more powerful
Advantages of distributed systems. computers with multiple microprocessors Clustering
Resources sharing allowstwo or more systems to share storage
Computation speed up- loadsharing 1 Provides high reliability.
Reliability 2 Asymmetric clustering : one server runs the
Communications application or applications while other server's
1.5 Clustered Syste m standby.
3 Symmetrie clustering: all N lios ts are running the
Chuster architecture interconnects two Or more
application
computers uSing additional network and software
1-29 Introduction to Operating Systerm
Operating System(MSBTE) 1-28 Introduction to Operating Systerm Operating System (MSBTE)
These applications are generally same for multiple
1.6 Real Tine System users to use.
Real timne applications: A Real time application is an Fig. 1.10: Real time OS
application which requires a timely 'response from the
computer system to prevent failures. System which controls scientific experimental, medical
1.6.1 Worst Case Response Time systems etc. are real timne systens.
Ln short in real time systen :
The worst-case response time of an application is the 1 Real time systems are also called as Multi
largest value of the response time for which it can still tasking systems.
function correctly. This timely' system is used where is 2 Logicalextension of Multiprogramming systeins.
time is a very inportant factor Multiple jobs are executed by CPU switching
3.
The system is also known as online system. In this, among them.
system reports or result o/p in given time constraints. 4 Switching is very frequent, s0 that users can
An instant o/p are generated in this type of system, interact with programs while they are running
some of the examples of these system are Railway
reservation, Airline Reservation, Flight control
5 An interactive or Hands-on computer systen
6 Allows many users to share the computer
systems, Banking ete
resourees simultaneously.
1.30 tntbnduction te Operating Bysterm operating Systerm (MSTE) 1.50 introco
Aoperating Bysten(MserE)
Real ime systems are ued when proeessing Heattiné systefm Tie sheFiogeyte
must be done within the ixedtime eonatraints. No
Considered to work correctly, only if it returns The rel time sharing n ferme shating operafey
correct reulta with given time conatralnta. operating Nystenis sel ysteY, al fre se
9 Bxamples t Poceaa control in induatrial planta, whieh 65ffereit are provle te pros
roboties, air trafie control, telecommunieations, processes are xuted for exeCtio 6f p
military command and control aysterms, ete. Pew for sorme time slt but inwhi als leads to th
other examples are Railway Reservation aystems, BOIme process ezeeution, ortt
ATM machines ete. time slot ean be extendedwhict
10. Hard real-time Nystems1 Secondary storage for process exeeution bu ente fronns
limited or absent, data stored in short-term context switching cas aother
also take place in sarne process oes nt iete
memory. read-only memory (ROM).Not
rnanner ite woking withus tane
supported by general-purpose operating systems. lot then extra t e sot
1 Soft real-time systems : Limited utility in willnot be given to it.
industrial control Or robotics useful in
applications (multimedia, virtual reality)
4. For example- you are For example n case you
requiring advanced operating-system features. running a process with a are exectinga praceas
time slot of 5 seconds and which requres7 seconds
1.6.2 Difference between Time Sharing System and in case process does not for its copletion but
Real-time System conplete in 5 second and process requires 8
requires 1 extra second seeonds then 1 second
Sr. Real time system Time sharing system then it will be executed in time period will
No. be
next execution cycle but extended and afer that
1 In real time system, a job In time sharing system, time slot will not be anothber tune switching
has to be completed fixed time is given to each extended take place
within fixed deadline proces3 and all the
(time allowed). procesSes are arranged in 1.7 Desktop Systems
a queue.
Personal eomputers are called as desktop sv stems In
2 If job is not completed If the job is not completed the period of their first decade. the CPUs were not that
within the given time within the given tine eficient to protect an operating Vstem from user
then system may extend then it jumps to the next programs In these days Coperating sstems were
time for doing the job leaving the previous unable to provide the features- lke multiuser and
operations. job unfinished. After multitasking
processing to each job, it
again gives the same time
The goala of operating svstems nitally were to
for unfinished job Imaximize CPUand peripheral utilization Afterwards
systema staarted provxhingg leatures for maximzing user
convenienceand responsiveness
EOperatng Systenm (MSBTE) 1.31 ntroduction to Operating Syste ROperting System (MSBTE) 1-32 Introchuction to Operating Systen
Microsoft Windows and the Apple Macintosh were the 1.9 Features of Recent Operating Systems
operating systems used. The MS-DOS operating systen The most recent operating system includes various
was overtaken by Microsoft's multiple versions of
Microsoft Windows, and IBM changed MS-DOS to the releases by Microsoft i.e. various versions of Windows
OS2 multitasking system operating systems. The other popular category is UNEX and
Apple Macintosh is an operating systems used for Linux i.e open source software. A new trend in the market
advanced technology hardware. The other popular includes mobile phone operating systems like Android,
multi user operating systems were UNIX and LINUX. Windows, Symbian etc. MAC and OS/2 operating systems
Microconputers immediately adopted some of the are also used for specific technology machines Windows
technology developed for larger operating systems. For versiong have got following features :
mainframe conputers it is difficult to adopt the (a) User friendly
-operating systems available in the market. For
mainframes specific operating systems are required. (b) Multitasking and multiprogramming
1.8 Multiprocessor Systems (c) Online compatibility
(d) High GUI Interfaces
Explain the multiprocessor systerns concept. W-09
(e) Plug and play technology
Most of the systems are single processor systems ie.
these machines have single processor, generally this () High security
CPU is called as main CPU. There are systens which (g) Stand alone and Multiuser features.
are known as multiprocessor systems. They are also (h) Easy updations in
known as parallel systems or tightly coupled programs
systemns.. UNIX and Linux come under one category ie. open
These types of sy stems have more than one processor souree software. It possess following characteristics.
withthe main CPU which shares the computer bu3, the (a) Open source software
clock, and sometimes memory and peripheral devices. (b) Highly secured operating svstem
The main advantages of multiprocessor systema are
1 Increase in throughput
(e) Strong kernel program
2 Econony of scale (d) High security in nnultiuser enviroment
3 Increased reliability (e) Cost eflective
The operating 8ysterns Patehes of code are added by experts trom the
used for single processor CPU CPU 2 different corners of the world.
and multiprocessors ire
almost same with soie (g) Highly portable
additional features like (h) EIieient & effective tile svstems
Mmory
multitasking, Imultiuser Features of Mobile phone operating system
ete Fig 1.11: Multiprucessor system Compatible with desktop Cs
Operating System (MSBTE) 1-34 introduction to Opertins Q.
16
Operating System(MSBTE) 1-33 Introduction to Operating System Summer 2c09- Total Marks 12
2 Internet Access
3 Strong multimedia features. Q. 4 Describe multiprograrnming and muititasking.
4. Portable device management (Sections 1.2.2 and 1.2.3) (4 Marksy
a. 5 Describe real time systems. State any two examples of ts
Exercise applications. (Section 1.6) (4 Marks)
Short Questions Q. 6 Explain batch processing operating system.
Q.1 What are important parts of computer system ? Explain with (Section 1.2.1) (4 Marks)
the help of diagram.
Winter 2009-Total Marks 12
Q.2 What is an operating system ? Give examples of operating
systems.
Q.7 Define operating system. State the different types of operating
Q.3 List different Mainframe systems. system. (Section 1.2) (4 Marks)
Q. 4 List functions of an operating system. Q.8 Explain the multiprocessor systerns concept.
Long Questions (Section 1.3) (4 Marks)
Q.1 Explain generations of operating system. Q.9 Explain the real time operating systerm in brief.
Q.2 Explain Batch, Multi programmed, Multitasking, Time sharind (Section 1.6) (4 Marks)
and Desktop operating system.
Summer 2010 - Total Marks 16
Q.3 Expiain muitiproces sor systems.
Q.4 Explain distributed systems. a. 10 List different types of O.S. explan spooling.
(Sections 1.2 and 1.2.2(b)) (4 Marks)
Q.5 What is clustered systems ? Write in detail.
Q. 11 Differentiate between multiprogramning and multitasking OS.
O.6 What is real time systens.? Explain in details.
(Section 1.2.3(a)) (4 Marks)
1.10 BTE Questions and Answers Q. 12 Explain distributed system in detail (Section 1.4) (4 Marks)
Q. 13 List any four functions of operating system
Winter 2008- Total Marks 12
(Section 1.1.2) (4 Marks)
Q.1 ExplanBatch Monitoring functions. (Section 1.2.1) (4 Markd Winter 2010 - Total Marks 18
a. 2 What ts multitasking operating system? State advantages
multitasking operating system (Section 1.2.3) (4 Mark O. 14 Describe time sharing systerr along withh exarmple
(Section 1.2.4) (4 Marks)
a.3 What are the parts of computer system? Explain with the he
of dagram. (Section 1.1.1) (4 Markt
Operating System(MSBTE) 1-35 Introduction to Operating System
a. 15 What is real tinme operating system? Elaborate with an
example. (Section 1.6) (4 Marks)
a. 16 Describe multiprogramming and multitasking.
(Sections 1.2.2 and 1.2.3) (4 Marks)
a. 17 Describe evolution of operating system.
(Section 1.1) (4 Marks)