SlideShare a Scribd company logo
1 of 56
Operating System
Text Books Silberschatz, Galvin, and Gagne, “Operating System
Concepts with Java,”
Reference
Books
1) William Stallings, “Operating Systems: Internal
and Design Principles,” 5th Edition. Prentice-Hall,
Inc. 2005. ISBN: 9780131479548
2) Andrew S. Tanenbaum and Albert S Woodhull,
“Operating Systems Design and Implementation,” 3rd
Edition. Prentice Hall, 2006. ISBN: 9780131429383.
Reference
Web Sites
http://www.tutorialspoint.com/operating_system
A computer system consists of
– hardware
– system programs
– application programs
Introduction
An operating system is the interface between the
user and the hardware.
Operating System
Operating System Generations
• The First Generation ( 1945 - 1955 ):
Vacuum Tubes and Plugboards
• The Second Generation ( 1955 - 1965 ):
Transistors and Batch Systems
• The Third Generation ( 1965 - 1980 ):
Integrated Circuits and Multiprogramming
• The Fourth Generation ( 1980 - Present ):
Personal Computers
First generation (1940s-1950s)
• It was the era of vacuum tubes, plug boards
and punched cards.
• Programmer used to interact with the machine
directly through punched cards and used to
write the programs in machine language
• All the tasks for executing a program would be
performed by the programmer only
• There was no help like PL, linker, loader etc.
• Obviously, there was no operating system
Second Generation (1950s-1960s)
• Transistors based technology, mainframe computers,
line printers, magnetic tapes, assemblers, linkers,
loaders, compilers, FORTRAN, COBOL
• Steps:
 loading the compiler tape of the required compiler
 Reading from card reader
 Running the compiler
 Unloading the compiler
 Loading the assembler tape
 Running the assembler
 Unloading the assembler tape
 Loading the object program
 Running the object program
• Problems and development of OS
 Set up delay problem due to loading and unloading
of tapes in earlier computer system
 CPU was idle
 Jobs of users prepared with same PL were batched
together
 Automated Job Sequencing ( turning point)
 Resident Monitor ( had to be in memory forever)
 Problem in Batch Systems
 I/O devices were electromechanical , on other hand
CPU was electronic device
 Mismatch between the speed of CPU and I/O
devices
 Offline operation with magnetic tapes
 Tapes were sequential access devices
Third Generation (1960s-1980s)
• Problem in 2G: Tapes were sequential
access devices
• Need to carry separate tape for input and
output as their storage capacity was low
• Magnetic disk came into existence, as
disks were random access devices and of
higher storage capacity
• IC based technology, Minicomputer
Problems and Development of OSs
• Hard disks came into existence
• Multi-programming
• Multi-programmed batch systems
• Spooling( Simultaneous Peripheral Operation Online)
• Lack of user-programmer interaction with their jobs in
multi-programmed batch systems
• Time-sharing multi-user systems
• CTSS (Compatible Time Sharing System)
• MULTICS (Multiplexed information and Computing
Service)
• UNICS (Uniplexed Information and Computing Service)
• UNIX
• UNIX written in C
Fourth Generation (1980s-Present)
• LSI and VLSI based technology
• Microcomputer (later named as PCs)
• Intel 8080 was the first Microprocessor for
PC
Problems and Development of OSs
• Gary kildall in Intel designed an OS called CP/M (control
program for micro computers) for PCs
• MS-DOS
• Multiuser facility were not there in DOS
• XENIX
• OS/2
• No user friendliness and convenience due to command
driven and complex file systems
• Apple Macintosh
• Windows
• Multi-tasking
• Multi- threading
• UNIX developers lacking GUI ….X Windows, Motif
• Network Operating Systems
• Distributed Operating Systems
Four Components of a Computer System
Computer System Components
• Hardware – provides basic computing
resources.
(CPU, memory, I/O devices).
• Operating system – controls and
coordinates the use of the hardware among
the various application programs for the
various users.
• Applications programs – define the ways in
which the system resources are used to solve
the computing problems of the users
(compilers, database systems, video games,
business programs).
• Users (people, machines, other computers).
Operating System: Definitions
OS simplifies and manages the complexity of running
application programs efficiently.
So, we can define:
• OS as an extended machine
– Hides the messy details which must be performed
– Presents user with a virtual machine, easier to use
• OS as resource manager
– Coordination and control of limited resources such as memory,
disk, network, etc
– Deal with resource conflicts
– Deal with resource fairness
– Make access efficient as possible
• OS is a control program
– Controls execution of programs to prevent errors and
improper use of the computer
– It is specially concerned with the operation and
control of I/O devices.
• OS as a Government
– Like a government, it performs no useful function by
itself.
– It simply provides an environment within which other
programs can do useful work.
Operating System: Definitions
What does an Operating System Do?
• Objectives of an OS
– Convenience
• An operating system makes a computer more
convenient to use.
– Efficiency
• An operating system allows the computer system
resources to be used in an efficient manner.
– Ability to Evolve
• Should permit effective development, testing, and
introduction of new system features and functions
without interfering with service.
Types of Operating System
• Batch Processing systems
• Multi-programming systems
• Multi-user Time sharing systems
• Multi-tasking systems
• Network Operating Systems
• Multi- Processor Operating Systems
• Distributed Operating Systems
Batch Operating Systems
• Were developed as a result of more set-up time
for execution of different types of user programs
• Can be used for user jobs which do not require
user intervention
• Main advantage of batch processing is to
increase the CPU utilization
• It is not meant for a quick response to the
users, but it is still used to quantify the user
service turnaround time
• The time since the job was submitted to the
system to the time when the user gets the result
back
Multi- programming systems
• Multi programming means to place several
programs or jobs in main memory instead of
a single program
Two types of instruction in a program :
• CPU bound and I/O bound
• CPU has an instruction for processing or
computation
• There is a request to an I/P or O/P device
to read or write
Benefits of Multi-programming
• Less execution time : spooling and switching
between the jobs frequently by CPU
• Increased utilization of memory : instead of
storing a single program in memory, more than
one program is stored thereby utilizing the main
memory
• Increased throughput
Throughput= No of jobs completed per unit time
Throughput is increased if degree of multi
programming is increased
Multi-User Time sharing system
• Batch and multi- programmed batch systems
do not provide immediate response to the user
• If one user submits his/her job, he/she has to
wait for the execution of all the jobs in the batch
and then get the output
• Waiting time of a user is more and he/she is
not in direct touch with his/her job
• Problem is due to non-interactive input and
output devices
Benefits
• Multiuser facility: multiple users connected to a
single system where each user presents the job to
the system and gets the response
• Improved response time : user now is in direct
touch of his job and due to easy interface, he
views everything regarding his job
• Improved Debugging and Productivity : user
can view his mistake, debugging of programs is
easy. Quickly modifies program and run again,
thereby increasing productivity also
Multi tasking systems
Time sharing and multi tasking are also used
interchangeably
Multi user and multi tasking are different terms, and time
sharing is the scheduling technique in both of them
Multi-programming : place more than one job/
program/task in the main memory
Multiuser System: place more than one job/
program/task in the main memory of the main
computer system. Here jobs come from the
different users who are connected through
terminals to the main computer. Jobs are
scheduled by time sharing technique
Multi tasking systems : place more than one
job/program/task in the main memory of the
system. The jobs here are of a single user
working on the system. Jobs are scheduled
by time sharing technique
Network Operating System
• This system coordinates the activities on a
network system
• In a network each node has its own local
operating system
• User is able to connect to another machine
and perform many operations
• User must be aware of the location of the
network node where he/she wants to connect
• When a user wants to remote log onto a
system, wants to transfer a file etc. on a
network system
• User may perform both local and non local
operations
• Non-local operations, the role of network
operating system starts
• NOS may be considered as another layer
of software on the operating system on a
local machine
Distributed Operating system
• Works in a WAN
• Each node in a distributed system is a
complete computer having full set of
peripherals including OS
• Main motive is resource sharing
• Users are not aware where their processes
are being sent and executed
Tasks to be met by DOS
Three types of migration
• Data migration transferring data from one
site to another site
• Computation migration transferring the
computation on a particular node
• Process migration the process or its sub
processes may also need to be transferred
to some other nodes due to some reasons
like load balancing, computation speed etc
Real time systems
• Time sharing system drawback, if more load
on system, response time was further
increased with increase in load
• Some systems cannot bear delay.
• Used to handle time bound responses to the
applications
• Applicable to systems which require time
bound
response, i.e. for real time processing systems
( immediate or within a fixed time frame)
•
• Examples :
• Defense applications like guided missile
systems, air traffic control systems
• Two types
1.Hard real time system : have hard deadlines
and must be met
2.Soft real time system : missing of some
deadline is acceptable. E.g. digital audio,
multimedia systems, virtual reality
Delay here must be bounded and
predictable and should not be infinite
Embedded systems
• Specialized systems with size, memory and
power restrictions
• Used in consumer electronic items, mobile
phones, smart cards etc.
• Embedded systems also have OS but they
are not generalized ones
• User uses these devices without any
awareness of operating system
• Embedded Oss are there to perform all the
basic functionalities like initialization, task
management, memory management etc.
• There are OS, but not in the same
structure as in general purpose computer
systems
Oss generic components
• Hardware
• Kernel
• Shell
• System and application programs
• user
• Kernel : A kernel is the central part of
an operating system. It manages the tasks
of the computer and the hardware - most
notably memory and CPU time.
• Command interpreter or shell : A program
which reads and interprets the control
statements and passes the signals to
operating system
Kernel types
• Monolithic
• Microkernel
MONOLITHIC ARCHITECTURE
Therefore, all the functionalities were added in the kernel only. The
advantage of this type of architecture was that intercommunication
between the modules of the OS was
efficient, as all the modules were in the kernel together
MONOLITHIC ARCHITECTURE
• Due to all functionalities merged in a single layer, it was difficult
to do modifications in a module.
• debugging in the modules of the OS became a difficult job.
• Another disadvantage of this architecture was that there was no
protection.
• Monolithic systems were not suitable for multi-
programming/multi-tasking environments due to unprotected
behavior of the system.
The DOS, initial architecture of UNIX, and Linux are some
examples of monolithic structures.
MICROKERNEL ARCHITECTURE
• To remove heavy functionalities from the kernel, it was thought
that some essential functionality will remain inside the kernel known
as essential core of the OS code.
• The kernel, consisting of essential core, is called microkernel.
• The components of the essential core may be process management,
inter-process communication, low-level memory management, and
so on.
• The other OS modules, which were considered as non-essential,
were moved up in the user space. In this way, microkernel was
designed to manage the large-size kernel by dividing it into two
parts:
kernel space code and user space code.
MICROKERNEL ARCHITECTURE
• Developers have discussed features to be included inside the kernel
and features to be incorporated in the user space.
• The modules implemented outside the kernel in user space are
called server processes.
• The application programs of the user (client programs)
communicate with the server process.
The server processes provide various services like file system
management, process scheduling, device management, networking,
and so on.
• The communication between the client applications and server
processes is through the message-passing communication method,
called as Inter-process Communication (IPC), also known as client-
server architecture of OSs.
1 Introduction to OS.ppt

More Related Content

Similar to 1 Introduction to OS.ppt

Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)NehaTadam
 
os unit 1 (2).pptx. introduction to operating systems
os unit 1 (2).pptx. introduction to operating systemsos unit 1 (2).pptx. introduction to operating systems
os unit 1 (2).pptx. introduction to operating systemsssuser6aef00
 
Unit 1 introduction to os
Unit 1 introduction to osUnit 1 introduction to os
Unit 1 introduction to osGaneshThapa27
 
Types of operating system.................
Types of operating system.................Types of operating system.................
Types of operating system.................harendersin82880
 
OperatingSystemFeature.pptx
OperatingSystemFeature.pptxOperatingSystemFeature.pptx
OperatingSystemFeature.pptxCharuJain396881
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system conceptsArnav Chowdhury
 
Classifications of OS.pptx
Classifications of OS.pptxClassifications of OS.pptx
Classifications of OS.pptxBalamurugan M
 
Operating system
Operating systemOperating system
Operating systemSonika koul
 
Introduction & Background(Operating Systems).pptx
Introduction & Background(Operating Systems).pptxIntroduction & Background(Operating Systems).pptx
Introduction & Background(Operating Systems).pptxssuserf7df42
 
Operating System DOS and Windows
Operating System DOS and WindowsOperating System DOS and Windows
Operating System DOS and WindowsYasirKhan357
 
4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John LadoMark John Lado, MIT
 

Similar to 1 Introduction to OS.ppt (20)

Operating System
Operating SystemOperating System
Operating System
 
Operating System
Operating SystemOperating System
Operating System
 
os_1.pdf
os_1.pdfos_1.pdf
os_1.pdf
 
Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)
 
Operating System
Operating SystemOperating System
Operating System
 
os unit 1 (2).pptx. introduction to operating systems
os unit 1 (2).pptx. introduction to operating systemsos unit 1 (2).pptx. introduction to operating systems
os unit 1 (2).pptx. introduction to operating systems
 
Os unit i
Os unit iOs unit i
Os unit i
 
Operating System Overview.pdf
Operating System Overview.pdfOperating System Overview.pdf
Operating System Overview.pdf
 
Unit 1 introduction to os
Unit 1 introduction to osUnit 1 introduction to os
Unit 1 introduction to os
 
Types of operating system.................
Types of operating system.................Types of operating system.................
Types of operating system.................
 
OperatingSystemFeature.pptx
OperatingSystemFeature.pptxOperatingSystemFeature.pptx
OperatingSystemFeature.pptx
 
Os concepts
Os conceptsOs concepts
Os concepts
 
Operating system concepts
Operating system conceptsOperating system concepts
Operating system concepts
 
Classifications of OS.pptx
Classifications of OS.pptxClassifications of OS.pptx
Classifications of OS.pptx
 
Operating system
Operating systemOperating system
Operating system
 
Os notes 1_5
Os notes 1_5Os notes 1_5
Os notes 1_5
 
Introduction & Background(Operating Systems).pptx
Introduction & Background(Operating Systems).pptxIntroduction & Background(Operating Systems).pptx
Introduction & Background(Operating Systems).pptx
 
1. Introduction to OS.ppt
1. Introduction to OS.ppt1. Introduction to OS.ppt
1. Introduction to OS.ppt
 
Operating System DOS and Windows
Operating System DOS and WindowsOperating System DOS and Windows
Operating System DOS and Windows
 
4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado4 Module - Operating Systems Configuration and Use by Mark John Lado
4 Module - Operating Systems Configuration and Use by Mark John Lado
 

Recently uploaded

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 

1 Introduction to OS.ppt

  • 2. Text Books Silberschatz, Galvin, and Gagne, “Operating System Concepts with Java,” Reference Books 1) William Stallings, “Operating Systems: Internal and Design Principles,” 5th Edition. Prentice-Hall, Inc. 2005. ISBN: 9780131479548 2) Andrew S. Tanenbaum and Albert S Woodhull, “Operating Systems Design and Implementation,” 3rd Edition. Prentice Hall, 2006. ISBN: 9780131429383. Reference Web Sites http://www.tutorialspoint.com/operating_system
  • 3. A computer system consists of – hardware – system programs – application programs Introduction
  • 4.
  • 5. An operating system is the interface between the user and the hardware. Operating System
  • 6. Operating System Generations • The First Generation ( 1945 - 1955 ): Vacuum Tubes and Plugboards • The Second Generation ( 1955 - 1965 ): Transistors and Batch Systems • The Third Generation ( 1965 - 1980 ): Integrated Circuits and Multiprogramming • The Fourth Generation ( 1980 - Present ): Personal Computers
  • 7. First generation (1940s-1950s) • It was the era of vacuum tubes, plug boards and punched cards. • Programmer used to interact with the machine directly through punched cards and used to write the programs in machine language • All the tasks for executing a program would be performed by the programmer only • There was no help like PL, linker, loader etc. • Obviously, there was no operating system
  • 8. Second Generation (1950s-1960s) • Transistors based technology, mainframe computers, line printers, magnetic tapes, assemblers, linkers, loaders, compilers, FORTRAN, COBOL • Steps:  loading the compiler tape of the required compiler  Reading from card reader  Running the compiler  Unloading the compiler  Loading the assembler tape  Running the assembler  Unloading the assembler tape  Loading the object program  Running the object program
  • 9. • Problems and development of OS  Set up delay problem due to loading and unloading of tapes in earlier computer system  CPU was idle  Jobs of users prepared with same PL were batched together  Automated Job Sequencing ( turning point)  Resident Monitor ( had to be in memory forever)  Problem in Batch Systems  I/O devices were electromechanical , on other hand CPU was electronic device  Mismatch between the speed of CPU and I/O devices  Offline operation with magnetic tapes  Tapes were sequential access devices
  • 10. Third Generation (1960s-1980s) • Problem in 2G: Tapes were sequential access devices • Need to carry separate tape for input and output as their storage capacity was low • Magnetic disk came into existence, as disks were random access devices and of higher storage capacity • IC based technology, Minicomputer
  • 11. Problems and Development of OSs • Hard disks came into existence • Multi-programming • Multi-programmed batch systems • Spooling( Simultaneous Peripheral Operation Online) • Lack of user-programmer interaction with their jobs in multi-programmed batch systems • Time-sharing multi-user systems • CTSS (Compatible Time Sharing System) • MULTICS (Multiplexed information and Computing Service) • UNICS (Uniplexed Information and Computing Service) • UNIX • UNIX written in C
  • 12. Fourth Generation (1980s-Present) • LSI and VLSI based technology • Microcomputer (later named as PCs) • Intel 8080 was the first Microprocessor for PC
  • 13. Problems and Development of OSs • Gary kildall in Intel designed an OS called CP/M (control program for micro computers) for PCs • MS-DOS • Multiuser facility were not there in DOS • XENIX • OS/2 • No user friendliness and convenience due to command driven and complex file systems • Apple Macintosh • Windows • Multi-tasking • Multi- threading • UNIX developers lacking GUI ….X Windows, Motif • Network Operating Systems • Distributed Operating Systems
  • 14. Four Components of a Computer System
  • 15. Computer System Components • Hardware – provides basic computing resources. (CPU, memory, I/O devices). • Operating system – controls and coordinates the use of the hardware among the various application programs for the various users.
  • 16. • Applications programs – define the ways in which the system resources are used to solve the computing problems of the users (compilers, database systems, video games, business programs). • Users (people, machines, other computers).
  • 17.
  • 18.
  • 19. Operating System: Definitions OS simplifies and manages the complexity of running application programs efficiently. So, we can define: • OS as an extended machine – Hides the messy details which must be performed – Presents user with a virtual machine, easier to use • OS as resource manager – Coordination and control of limited resources such as memory, disk, network, etc – Deal with resource conflicts – Deal with resource fairness – Make access efficient as possible
  • 20. • OS is a control program – Controls execution of programs to prevent errors and improper use of the computer – It is specially concerned with the operation and control of I/O devices. • OS as a Government – Like a government, it performs no useful function by itself. – It simply provides an environment within which other programs can do useful work. Operating System: Definitions
  • 21. What does an Operating System Do? • Objectives of an OS – Convenience • An operating system makes a computer more convenient to use. – Efficiency • An operating system allows the computer system resources to be used in an efficient manner. – Ability to Evolve • Should permit effective development, testing, and introduction of new system features and functions without interfering with service.
  • 22. Types of Operating System • Batch Processing systems • Multi-programming systems • Multi-user Time sharing systems • Multi-tasking systems • Network Operating Systems • Multi- Processor Operating Systems • Distributed Operating Systems
  • 23. Batch Operating Systems • Were developed as a result of more set-up time for execution of different types of user programs • Can be used for user jobs which do not require user intervention • Main advantage of batch processing is to increase the CPU utilization • It is not meant for a quick response to the users, but it is still used to quantify the user service turnaround time • The time since the job was submitted to the system to the time when the user gets the result back
  • 24.
  • 25. Multi- programming systems • Multi programming means to place several programs or jobs in main memory instead of a single program Two types of instruction in a program : • CPU bound and I/O bound • CPU has an instruction for processing or computation • There is a request to an I/P or O/P device to read or write
  • 26.
  • 27.
  • 28.
  • 29. Benefits of Multi-programming • Less execution time : spooling and switching between the jobs frequently by CPU • Increased utilization of memory : instead of storing a single program in memory, more than one program is stored thereby utilizing the main memory • Increased throughput Throughput= No of jobs completed per unit time Throughput is increased if degree of multi programming is increased
  • 30. Multi-User Time sharing system • Batch and multi- programmed batch systems do not provide immediate response to the user • If one user submits his/her job, he/she has to wait for the execution of all the jobs in the batch and then get the output • Waiting time of a user is more and he/she is not in direct touch with his/her job • Problem is due to non-interactive input and output devices
  • 31.
  • 32.
  • 33.
  • 34. Benefits • Multiuser facility: multiple users connected to a single system where each user presents the job to the system and gets the response • Improved response time : user now is in direct touch of his job and due to easy interface, he views everything regarding his job • Improved Debugging and Productivity : user can view his mistake, debugging of programs is easy. Quickly modifies program and run again, thereby increasing productivity also
  • 35. Multi tasking systems Time sharing and multi tasking are also used interchangeably Multi user and multi tasking are different terms, and time sharing is the scheduling technique in both of them
  • 36. Multi-programming : place more than one job/ program/task in the main memory Multiuser System: place more than one job/ program/task in the main memory of the main computer system. Here jobs come from the different users who are connected through terminals to the main computer. Jobs are scheduled by time sharing technique
  • 37. Multi tasking systems : place more than one job/program/task in the main memory of the system. The jobs here are of a single user working on the system. Jobs are scheduled by time sharing technique
  • 38. Network Operating System • This system coordinates the activities on a network system • In a network each node has its own local operating system • User is able to connect to another machine and perform many operations • User must be aware of the location of the network node where he/she wants to connect • When a user wants to remote log onto a system, wants to transfer a file etc. on a network system
  • 39. • User may perform both local and non local operations • Non-local operations, the role of network operating system starts • NOS may be considered as another layer of software on the operating system on a local machine
  • 40. Distributed Operating system • Works in a WAN • Each node in a distributed system is a complete computer having full set of peripherals including OS • Main motive is resource sharing • Users are not aware where their processes are being sent and executed
  • 41.
  • 42. Tasks to be met by DOS Three types of migration • Data migration transferring data from one site to another site • Computation migration transferring the computation on a particular node • Process migration the process or its sub processes may also need to be transferred to some other nodes due to some reasons like load balancing, computation speed etc
  • 43. Real time systems • Time sharing system drawback, if more load on system, response time was further increased with increase in load • Some systems cannot bear delay. • Used to handle time bound responses to the applications • Applicable to systems which require time bound response, i.e. for real time processing systems ( immediate or within a fixed time frame) •
  • 44.
  • 45. • Examples : • Defense applications like guided missile systems, air traffic control systems • Two types 1.Hard real time system : have hard deadlines and must be met 2.Soft real time system : missing of some deadline is acceptable. E.g. digital audio, multimedia systems, virtual reality Delay here must be bounded and predictable and should not be infinite
  • 46. Embedded systems • Specialized systems with size, memory and power restrictions • Used in consumer electronic items, mobile phones, smart cards etc. • Embedded systems also have OS but they are not generalized ones • User uses these devices without any awareness of operating system
  • 47. • Embedded Oss are there to perform all the basic functionalities like initialization, task management, memory management etc. • There are OS, but not in the same structure as in general purpose computer systems
  • 48. Oss generic components • Hardware • Kernel • Shell • System and application programs • user
  • 49. • Kernel : A kernel is the central part of an operating system. It manages the tasks of the computer and the hardware - most notably memory and CPU time. • Command interpreter or shell : A program which reads and interprets the control statements and passes the signals to operating system
  • 51. MONOLITHIC ARCHITECTURE Therefore, all the functionalities were added in the kernel only. The advantage of this type of architecture was that intercommunication between the modules of the OS was efficient, as all the modules were in the kernel together
  • 52.
  • 53. MONOLITHIC ARCHITECTURE • Due to all functionalities merged in a single layer, it was difficult to do modifications in a module. • debugging in the modules of the OS became a difficult job. • Another disadvantage of this architecture was that there was no protection. • Monolithic systems were not suitable for multi- programming/multi-tasking environments due to unprotected behavior of the system. The DOS, initial architecture of UNIX, and Linux are some examples of monolithic structures.
  • 54. MICROKERNEL ARCHITECTURE • To remove heavy functionalities from the kernel, it was thought that some essential functionality will remain inside the kernel known as essential core of the OS code. • The kernel, consisting of essential core, is called microkernel. • The components of the essential core may be process management, inter-process communication, low-level memory management, and so on. • The other OS modules, which were considered as non-essential, were moved up in the user space. In this way, microkernel was designed to manage the large-size kernel by dividing it into two parts: kernel space code and user space code.
  • 55. MICROKERNEL ARCHITECTURE • Developers have discussed features to be included inside the kernel and features to be incorporated in the user space. • The modules implemented outside the kernel in user space are called server processes. • The application programs of the user (client programs) communicate with the server process. The server processes provide various services like file system management, process scheduling, device management, networking, and so on. • The communication between the client applications and server processes is through the message-passing communication method, called as Inter-process Communication (IPC), also known as client- server architecture of OSs.