SlideShare a Scribd company logo
1 of 75
Introduction to
Operating systems & RTOS
Dr. Y.NARASIMHA MURTHY. Ph. D
yayavaram@yahoo.com
Invocation….
Where the mind is without fear and the head is held high;
Where knowledge is free;
Where the world has not been broken up
into fragments by narrow domestic walls;
Where words come out from the depth of truth;
Where tireless striving stretches its arms towards perfection;
Where the clear stream of reason
has not lost its way into the dreary desert sand of dead habit;
Where the mind is led forward by thee into ever-widening
thought and action---
Into that heaven of freedom, my Father, let my country awake.
----RABINDRANATH TAGORE
• A computer is a complex system with many
resources like CPU, I/O devices, disk, memory
etc… For any common user it is always a
confusion about the using of the resources
effectively.
• Because, unless otherwise the system is user-
friendly, the user cannot use the computers
effectively.
contd
So we always require a system software which can
take care of all the hardware complexities and
shoulder the responsibility of resource allocation
such that the user can work with the computer
more effectively.
This was realised by the people very long back and
they tried to develop a software to shield the
programmers from the complexity of the
hardware.
The result is, a layer of software on the top
of the hardware, to manage all parts of the
system and present the user with an interface
or “Virtual machine” that is easier to
understand the program. This layer of the
software has become our so-called
OPERATING SYSTEM.
Now Lets answer the question
What is an Operating System?
A more formal definition!
OS is “A collection of software modules to assist
programmers in enhancing the system efficiency ,
flexibility and robustness.
Or
“Operating system is a piece of software which
controls all the computer’s resources and provides
the base upon which the application programs can
be written”
From the user point of view
OS is “ An extended machine (virtual)”
and
From the systems view point
“It is a resource manager”.
Let us substantiate !
 The operating system shields the
programmer from the disk hardware and
provides a simple file oriented interface. It
also conceals a lot of unpleasant business
concerning interrupts, timers, memory
management and other low level features.
So the function of the OS is to present the
user with the equivalent of an extended
machine or virtual machine.
Contd……
 A computer is provided with processors,
memories, timers, disks, terminals, drives, printers,
network interfaces and a wide variety of the other
devices. The operating system provides an
orderly and controlled allocation of the
processors, memories and I/O devices among the
various programs competing for them. It also
keep track of, who is using which resource, to
grant resource requests, to account for usage and
to mediate conflicting requests from different
users and programs.
Contd….
Provides an environment in which
programs can be executed. Makes efficient
use of computer hardware and peripherals.
Hide the peculiarities of the disks and
other I/O devices.Hence the OS is also
treated as a resource manager
So,Where your OS sits in your System?
compilers
databases
word
processors
CPU
memory
I/O devices
Evolution of OS
 The next slide shows the evolution of OS .
 Actually Prof.E.W.Dijsktra is considered as the
father of Operating system.
Generation Era O/S used Feature
First 1945-55
Vacuum tubes
ENIAC
EDVAC
Analog
computers
No O/S Plug in boards
Jumper wired
Second 1955-65
IBM 1401, 7094
Batch O/S (Not interact
system)
Paper tape
Punched cards
Offline printing
Third 1965-80
IBM 360
Time sharing O/S (many at
the same time PDP-II
Spooling (On-line)
Multiprogramming
Fourth 1980-90
IBM 360
MS-DOS
UNIX
User friendly. He
need not know
about computer
Fifth 1990 KBCS
(Knowledge
based computer
system)
Distributed O/S
Network O/S
More advanced
The basic requirements of OS:
 Usability (Robustness)
OS should accept all valid inputs ,even with errors
and gracefully handle all invalid inputs .It should
not be crashed under any circumstances ,and
could be recovered,even we remove any
hardware while they are running .
It should provide every facility for the efficient
development of application software and should
not leave out any part of the facility.
Adaptability :
Should support necessary activities,and not
to impose unnecessary restrictions.Adapt as
needs and resources change.
Facilities:
Cost:
Low maintenance cost and the system should
not require constant attention.Efficient
service and good algorithms must be
provided at low cost
OS Components
 Kernel: Core components of the OS
 Process scheduler :
 Determines when and for long each process executes
 Memory manager :
 Determines when and how memory is allocated to processes
 Decides what to do when main memory is full
 File system :
 Organizes named collections of data in persistent storage
 Networking :
 Enables processes to communicate with one another
The primary functions of an
operating system
 Multiplexing the processor(s)
 Scheduling the processes
 Coordinating interaction among processes,interprocess
communication and Synchronization.
 Managing the system resources(I/O,memory,data files)
 Enforcing acess control and protection
 Maintaining the system integrity and performing error
recovery
 Providing an interface to the users
TYPES OF OPERATING SYSTEMS
There are three types of Operating systems based
on their application
• Stand-Alone Operating system
• Network Operating systems
• Embedded Operating systems
Stand-Alone Operating system
 It is a complete operating system that works
on a desktop or notebook computer.
Examples of stand-alone operating systems are:
 DOS
 Windows 2000 professional
 Mac OS X
Network Operating systems
 It is an operating system that provides extensive
support for computer networks. A network
operating system typically resides on a server.
Examples of a network Operating system are:
 Windows 2000 server
 Unix
 Linux
 Solaris
Embedded Operating system
 You can find this operating system on handheld
computers and small devices. It resides on a
ROM chip. Examples of embedded operating
systems are :
o Windows CE
o Pocket PC 2002
o Palm OS
Now Lets see various Operating
systems and their features
contd
contd
contd
contd
contd
contd
contd
contd
Operating systems market share
S.No Operating system Market share
1
2
3
4
5
6
7
8
9
10
11
Windows XP
Windows Vista
Windows 2000
Mac OS
MacIntel
Windows 98
Linux
Windows NT
Windows Me
Ninendo Wii
Other
81.94%
4.52%
4.00%
3.52%
2.48%
1.14%
0.71%
0.66%
0.59%
0.17%
0.20%
REAL- TIME OPERATING SYSTEM
(RTOS)
 “The ability of the operating system to
provide a required level of service in a
bounded response time”.
Or
 The Real time operating system is an
operating system that make it suitable for
building real time computing applications
also known as real time systems(RTS).
What is a real time system(RTS)?
A RTS is a system where correctness of computing
depends not only on the correctness of the logical
result of the computation but also on the result of
delivery time. In a well designed RTS each individual
dead line should be met. But in practice it is not
possible and also costly to achieve this requirement.
So, people classified the real time systems in to the
following types.
Hard Real time
Here missing an individual deadline results in
catastrophic failure of the system which also
causes a great financial loss .
The examples for Hard real time systems are:
 Air traffic control
 Nuclear power plant control
Firm Real time
In this, missing a deadline results in
unacceptable quality reduction. Technically
there is no difference with hard Real time, but
economically the disaster risk is limited.
Examples for Firm real time are :
o Failure of Ignition of a automobile
o Failure of opening of a safe
Soft real time
Here the dead line may not be fulfilled and can be
recovered from. The reduction in system quality
and performance is at an acceptable level.
Examples of Soft real time systems :
 Multimedia transmission and reception
 Networking, telecom (Mobile) networks
 websites and services
 Computer games
Components of an RTOS
 Process (task) management
 Scheduler
 Synchronization mechanism
Interprocess communication (IPC)
Semaphores
 Memory management
 Interrupt service mechanism
 I/O management , H.A.Layer
 Development Environments
 Communication subsystems (Option)
 Board Support Packages (BSP)
Features of RTOS’s
 Predictability
 Timeliness
 Reliability
 Fault tolerant
 Efficiency of System
Components
 Resource Allocation.
 Interrupt Handling.
 Other issues like kernel
size.
Types of RTOS
Commercial RTOSs
 VxWorks
 QNX
 MicroC/OS-II
 RTLinux
 Windows CE ( www.microsoft.com)
VxWorks
 This is from Wind River (www.windriver.com).
 One of the most popular real time operating
system
 This has been used in the Mars pathfinder
 It supports a number of processors including
Power Pc, Intel strong ARM,ARM,Hitachi
SuperH, Motorola ColdFire etc…
 It supports multiple scheduling algorithm and
also priority inheritance
QNX Neutrino
 It is a popular real time operating system from QNX
software systems limited (www. qnx.com)
 It supports a number of Processors namely
ARM,MIPS,Power PC,SH-4,X86 &Pentium…
 It has support for C,C++ and Java languages and TCP/IP
protocol stack.
 This supports multiple scheduling algorithms and up to
65,535 tasks. My SQL can be integrated with this OS to
create embedded database applications.
 Even small embedded systems can use this OS as it
requires 64K Kernel ROM and 32K kernel RAM.
MicroC/OS-II
 Microcontroller operating system version –II is
developed by Jean J.Labrosse(www.ucos-
II.com)is a preemptive real-time operating
system which is popular in academic institutions
for teaching RTOS concepts.
 It can support only 64 tasks out of which eight
are system tasks
 Round-robin scheduling algorithm is not
supported by this OS
RTLinux
 This OS was developed by FSM
Labs(www.fsmlabs.com) and available in two
versions RTLinux Pro and RTLinuxFree.
 The RTLinux Pro is the priced edition and
RTLinux Free is the free open source release.
 RTLinux is a hard real-time operating system
with support for many processors such as
x86,Pentium,PowerPC,ARM,Fujitsu,MIPS and
Alpha
 It does not support priority inheritance.
Windows CE
 Windows CE (also known officially as Windows
Embedded Compact and sometimes
abbreviated WinCE) is an operating system
developed by Microsoft for minimalistic
computers and embedded systems.
 Windows CE is optimized for devices that have
minimal storage—a Windows CE kernel may
run in under a megabyte of memory
 The system supports 256 priority levels and uses
priority inheritance for dealing with priority
inversion. The fundamental unit of execution is
the thread. This helps to simplify the interface
and improve execution time.
 A distinctive feature of Windows CE compared
to other Microsoft operating systems is that
large parts of it are offered in source code form.
Programming languages Used
 C is most widely used in RTOS programming
 C++ and Ada are the next more popular for large
projects.
 Assembly languages for increasing efficiency and
reusing the previous code
 Java may also be a choice for some applications
Which is the Best?
 It is always very difficult to judge which RTOS
is the best and which is the worst.It depends on
the application and interests of the user. Among
the above, Linux is royalty free but it has serious
drawbacks if it comes to real-time behavior. The
VxWorks is a very old and stable RTOS.
Similarly Windows CE 5.0 version RTOS is a
robust and stable regarding the real-time
behavior.
REFERENCES
 Modern Operating Sytems- Andrew S. Tanenbaum (PHI)
 Operating Systems –W. Stallings (PHI)
 Operating system Concepts-Avi Silberschatz & Peter
Baer Galvin.
 Operating Systems-D. M. Dhamdhere- TMH

More Related Content

Similar to Basics of OS & RTOS.ppt

Principles of operating system
Principles of operating systemPrinciples of operating system
Principles of operating systemAnil Dharmapuri
 
Comparing Features of Real Time OS and Distributed.pptx
Comparing Features of Real Time OS and Distributed.pptxComparing Features of Real Time OS and Distributed.pptx
Comparing Features of Real Time OS and Distributed.pptx42MOHDASIL
 
OS.pptx
OS.pptxOS.pptx
OS.pptxNG911
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating SystemsShweta Shah
 
MYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptxMYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptxArjayBalberan1
 
Operating system by aman kr kushwaha
Operating system by aman kr kushwahaOperating system by aman kr kushwaha
Operating system by aman kr kushwahaAMAN KUMAR KUSHWAHA
 
Ch1 OS
Ch1 OSCh1 OS
Ch1 OSC.U
 
introduction to Operating system for computer science Program
introduction to Operating system for computer science Programintroduction to Operating system for computer science Program
introduction to Operating system for computer science ProgramKemalHussen
 
Network operating systems
Network operating systems Network operating systems
Network operating systems Sachin Awasthi
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts pptRajendraPrasad Alladi
 
Operating system lecture1
Operating system lecture1Operating system lecture1
Operating system lecture1AhalyaSri
 

Similar to Basics of OS & RTOS.ppt (20)

Principles of operating system
Principles of operating systemPrinciples of operating system
Principles of operating system
 
Comparing Features of Real Time OS and Distributed.pptx
Comparing Features of Real Time OS and Distributed.pptxComparing Features of Real Time OS and Distributed.pptx
Comparing Features of Real Time OS and Distributed.pptx
 
OS.pptx
OS.pptxOS.pptx
OS.pptx
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
MYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptxMYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptx
 
Operating system by aman kr kushwaha
Operating system by aman kr kushwahaOperating system by aman kr kushwaha
Operating system by aman kr kushwaha
 
Ch1 OS
Ch1 OSCh1 OS
Ch1 OS
 
OS_Ch1
OS_Ch1OS_Ch1
OS_Ch1
 
OSCh1
OSCh1OSCh1
OSCh1
 
Types of os
Types of osTypes of os
Types of os
 
Operating systems
Operating systemsOperating systems
Operating systems
 
introduction to Operating system for computer science Program
introduction to Operating system for computer science Programintroduction to Operating system for computer science Program
introduction to Operating system for computer science Program
 
Network operating systems
Network operating systems Network operating systems
Network operating systems
 
ITM(2).ppt
ITM(2).pptITM(2).ppt
ITM(2).ppt
 
Operating system overview concepts ppt
Operating system overview concepts pptOperating system overview concepts ppt
Operating system overview concepts ppt
 
Embedded os
Embedded osEmbedded os
Embedded os
 
Operating system
Operating systemOperating system
Operating system
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating system
 
Operating system lecture1
Operating system lecture1Operating system lecture1
Operating system lecture1
 
Operating systems
Operating systems Operating systems
Operating systems
 

More from Dr.YNM

Introduction to DSP.ppt
Introduction to DSP.pptIntroduction to DSP.ppt
Introduction to DSP.pptDr.YNM
 
Atmel.ppt
Atmel.pptAtmel.ppt
Atmel.pptDr.YNM
 
PIC Microcontrollers.ppt
PIC Microcontrollers.pptPIC Microcontrollers.ppt
PIC Microcontrollers.pptDr.YNM
 
Crystalstructure-.ppt
Crystalstructure-.pptCrystalstructure-.ppt
Crystalstructure-.pptDr.YNM
 
Introducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptxIntroducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptxDr.YNM
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.pptDr.YNM
 
Introduction to ASICs.pptx
Introduction to ASICs.pptxIntroduction to ASICs.pptx
Introduction to ASICs.pptxDr.YNM
 
VHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptVHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptDr.YNM
 
Basics of data communications.pptx
Basics of data communications.pptxBasics of data communications.pptx
Basics of data communications.pptxDr.YNM
 
CPLD & FPGA Architectures and applictionsplications.pptx
CPLD & FPGA Architectures and applictionsplications.pptxCPLD & FPGA Architectures and applictionsplications.pptx
CPLD & FPGA Architectures and applictionsplications.pptxDr.YNM
 
Transient response of RC , RL circuits with step input
Transient response of RC , RL circuits  with step inputTransient response of RC , RL circuits  with step input
Transient response of RC , RL circuits with step inputDr.YNM
 
CISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURESCISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURESDr.YNM
 
Lect 4 ARM PROCESSOR ARCHITECTURE
Lect 4 ARM PROCESSOR ARCHITECTURELect 4 ARM PROCESSOR ARCHITECTURE
Lect 4 ARM PROCESSOR ARCHITECTUREDr.YNM
 
Lect 3 ARM PROCESSOR ARCHITECTURE
Lect 3  ARM PROCESSOR ARCHITECTURE Lect 3  ARM PROCESSOR ARCHITECTURE
Lect 3 ARM PROCESSOR ARCHITECTURE Dr.YNM
 
Microprocessor Architecture 4
Microprocessor Architecture  4Microprocessor Architecture  4
Microprocessor Architecture 4Dr.YNM
 
Lect 2 ARM processor architecture
Lect 2 ARM processor architectureLect 2 ARM processor architecture
Lect 2 ARM processor architectureDr.YNM
 
Microprocessor Architecture-III
Microprocessor Architecture-IIIMicroprocessor Architecture-III
Microprocessor Architecture-IIIDr.YNM
 
LECT 1: ARM PROCESSORS
LECT 1: ARM PROCESSORSLECT 1: ARM PROCESSORS
LECT 1: ARM PROCESSORSDr.YNM
 
Microprocessor architecture II
Microprocessor architecture   IIMicroprocessor architecture   II
Microprocessor architecture IIDr.YNM
 
Verilog Test Bench
Verilog Test BenchVerilog Test Bench
Verilog Test BenchDr.YNM
 

More from Dr.YNM (20)

Introduction to DSP.ppt
Introduction to DSP.pptIntroduction to DSP.ppt
Introduction to DSP.ppt
 
Atmel.ppt
Atmel.pptAtmel.ppt
Atmel.ppt
 
PIC Microcontrollers.ppt
PIC Microcontrollers.pptPIC Microcontrollers.ppt
PIC Microcontrollers.ppt
 
Crystalstructure-.ppt
Crystalstructure-.pptCrystalstructure-.ppt
Crystalstructure-.ppt
 
Introducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptxIntroducion to MSP430 Microcontroller.pptx
Introducion to MSP430 Microcontroller.pptx
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.ppt
 
Introduction to ASICs.pptx
Introduction to ASICs.pptxIntroduction to ASICs.pptx
Introduction to ASICs.pptx
 
VHDL-PRESENTATION.ppt
VHDL-PRESENTATION.pptVHDL-PRESENTATION.ppt
VHDL-PRESENTATION.ppt
 
Basics of data communications.pptx
Basics of data communications.pptxBasics of data communications.pptx
Basics of data communications.pptx
 
CPLD & FPGA Architectures and applictionsplications.pptx
CPLD & FPGA Architectures and applictionsplications.pptxCPLD & FPGA Architectures and applictionsplications.pptx
CPLD & FPGA Architectures and applictionsplications.pptx
 
Transient response of RC , RL circuits with step input
Transient response of RC , RL circuits  with step inputTransient response of RC , RL circuits  with step input
Transient response of RC , RL circuits with step input
 
CISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURESCISC & RISC ARCHITECTURES
CISC & RISC ARCHITECTURES
 
Lect 4 ARM PROCESSOR ARCHITECTURE
Lect 4 ARM PROCESSOR ARCHITECTURELect 4 ARM PROCESSOR ARCHITECTURE
Lect 4 ARM PROCESSOR ARCHITECTURE
 
Lect 3 ARM PROCESSOR ARCHITECTURE
Lect 3  ARM PROCESSOR ARCHITECTURE Lect 3  ARM PROCESSOR ARCHITECTURE
Lect 3 ARM PROCESSOR ARCHITECTURE
 
Microprocessor Architecture 4
Microprocessor Architecture  4Microprocessor Architecture  4
Microprocessor Architecture 4
 
Lect 2 ARM processor architecture
Lect 2 ARM processor architectureLect 2 ARM processor architecture
Lect 2 ARM processor architecture
 
Microprocessor Architecture-III
Microprocessor Architecture-IIIMicroprocessor Architecture-III
Microprocessor Architecture-III
 
LECT 1: ARM PROCESSORS
LECT 1: ARM PROCESSORSLECT 1: ARM PROCESSORS
LECT 1: ARM PROCESSORS
 
Microprocessor architecture II
Microprocessor architecture   IIMicroprocessor architecture   II
Microprocessor architecture II
 
Verilog Test Bench
Verilog Test BenchVerilog Test Bench
Verilog Test Bench
 

Recently uploaded

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 

Recently uploaded (20)

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 

Basics of OS & RTOS.ppt

  • 1. Introduction to Operating systems & RTOS Dr. Y.NARASIMHA MURTHY. Ph. D yayavaram@yahoo.com
  • 2. Invocation…. Where the mind is without fear and the head is held high; Where knowledge is free; Where the world has not been broken up into fragments by narrow domestic walls; Where words come out from the depth of truth; Where tireless striving stretches its arms towards perfection; Where the clear stream of reason has not lost its way into the dreary desert sand of dead habit; Where the mind is led forward by thee into ever-widening thought and action--- Into that heaven of freedom, my Father, let my country awake. ----RABINDRANATH TAGORE
  • 3. • A computer is a complex system with many resources like CPU, I/O devices, disk, memory etc… For any common user it is always a confusion about the using of the resources effectively. • Because, unless otherwise the system is user- friendly, the user cannot use the computers effectively.
  • 4. contd So we always require a system software which can take care of all the hardware complexities and shoulder the responsibility of resource allocation such that the user can work with the computer more effectively. This was realised by the people very long back and they tried to develop a software to shield the programmers from the complexity of the hardware.
  • 5. The result is, a layer of software on the top of the hardware, to manage all parts of the system and present the user with an interface or “Virtual machine” that is easier to understand the program. This layer of the software has become our so-called OPERATING SYSTEM.
  • 6. Now Lets answer the question What is an Operating System?
  • 7. A more formal definition! OS is “A collection of software modules to assist programmers in enhancing the system efficiency , flexibility and robustness. Or “Operating system is a piece of software which controls all the computer’s resources and provides the base upon which the application programs can be written”
  • 8. From the user point of view OS is “ An extended machine (virtual)” and From the systems view point “It is a resource manager”.
  • 9. Let us substantiate !  The operating system shields the programmer from the disk hardware and provides a simple file oriented interface. It also conceals a lot of unpleasant business concerning interrupts, timers, memory management and other low level features. So the function of the OS is to present the user with the equivalent of an extended machine or virtual machine.
  • 10. Contd……  A computer is provided with processors, memories, timers, disks, terminals, drives, printers, network interfaces and a wide variety of the other devices. The operating system provides an orderly and controlled allocation of the processors, memories and I/O devices among the various programs competing for them. It also keep track of, who is using which resource, to grant resource requests, to account for usage and to mediate conflicting requests from different users and programs.
  • 11. Contd…. Provides an environment in which programs can be executed. Makes efficient use of computer hardware and peripherals. Hide the peculiarities of the disks and other I/O devices.Hence the OS is also treated as a resource manager
  • 12. So,Where your OS sits in your System? compilers databases word processors CPU memory I/O devices
  • 13. Evolution of OS  The next slide shows the evolution of OS .  Actually Prof.E.W.Dijsktra is considered as the father of Operating system.
  • 14. Generation Era O/S used Feature First 1945-55 Vacuum tubes ENIAC EDVAC Analog computers No O/S Plug in boards Jumper wired Second 1955-65 IBM 1401, 7094 Batch O/S (Not interact system) Paper tape Punched cards Offline printing Third 1965-80 IBM 360 Time sharing O/S (many at the same time PDP-II Spooling (On-line) Multiprogramming Fourth 1980-90 IBM 360 MS-DOS UNIX User friendly. He need not know about computer Fifth 1990 KBCS (Knowledge based computer system) Distributed O/S Network O/S More advanced
  • 15. The basic requirements of OS:  Usability (Robustness) OS should accept all valid inputs ,even with errors and gracefully handle all invalid inputs .It should not be crashed under any circumstances ,and could be recovered,even we remove any hardware while they are running .
  • 16. It should provide every facility for the efficient development of application software and should not leave out any part of the facility. Adaptability : Should support necessary activities,and not to impose unnecessary restrictions.Adapt as needs and resources change. Facilities:
  • 17. Cost: Low maintenance cost and the system should not require constant attention.Efficient service and good algorithms must be provided at low cost
  • 18. OS Components  Kernel: Core components of the OS  Process scheduler :  Determines when and for long each process executes  Memory manager :  Determines when and how memory is allocated to processes  Decides what to do when main memory is full  File system :  Organizes named collections of data in persistent storage  Networking :  Enables processes to communicate with one another
  • 19. The primary functions of an operating system  Multiplexing the processor(s)  Scheduling the processes  Coordinating interaction among processes,interprocess communication and Synchronization.  Managing the system resources(I/O,memory,data files)  Enforcing acess control and protection  Maintaining the system integrity and performing error recovery  Providing an interface to the users
  • 20. TYPES OF OPERATING SYSTEMS There are three types of Operating systems based on their application • Stand-Alone Operating system • Network Operating systems • Embedded Operating systems
  • 21. Stand-Alone Operating system  It is a complete operating system that works on a desktop or notebook computer. Examples of stand-alone operating systems are:  DOS  Windows 2000 professional  Mac OS X
  • 22. Network Operating systems  It is an operating system that provides extensive support for computer networks. A network operating system typically resides on a server. Examples of a network Operating system are:  Windows 2000 server  Unix  Linux  Solaris
  • 23. Embedded Operating system  You can find this operating system on handheld computers and small devices. It resides on a ROM chip. Examples of embedded operating systems are : o Windows CE o Pocket PC 2002 o Palm OS
  • 24. Now Lets see various Operating systems and their features
  • 25.
  • 26.
  • 27.
  • 28.
  • 29. contd
  • 30. contd
  • 31. contd
  • 32. contd
  • 33. contd
  • 34. contd
  • 35. contd
  • 36. contd
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58. Operating systems market share S.No Operating system Market share 1 2 3 4 5 6 7 8 9 10 11 Windows XP Windows Vista Windows 2000 Mac OS MacIntel Windows 98 Linux Windows NT Windows Me Ninendo Wii Other 81.94% 4.52% 4.00% 3.52% 2.48% 1.14% 0.71% 0.66% 0.59% 0.17% 0.20%
  • 59. REAL- TIME OPERATING SYSTEM (RTOS)  “The ability of the operating system to provide a required level of service in a bounded response time”. Or  The Real time operating system is an operating system that make it suitable for building real time computing applications also known as real time systems(RTS).
  • 60. What is a real time system(RTS)? A RTS is a system where correctness of computing depends not only on the correctness of the logical result of the computation but also on the result of delivery time. In a well designed RTS each individual dead line should be met. But in practice it is not possible and also costly to achieve this requirement. So, people classified the real time systems in to the following types.
  • 61. Hard Real time Here missing an individual deadline results in catastrophic failure of the system which also causes a great financial loss . The examples for Hard real time systems are:  Air traffic control  Nuclear power plant control
  • 62. Firm Real time In this, missing a deadline results in unacceptable quality reduction. Technically there is no difference with hard Real time, but economically the disaster risk is limited. Examples for Firm real time are : o Failure of Ignition of a automobile o Failure of opening of a safe
  • 63. Soft real time Here the dead line may not be fulfilled and can be recovered from. The reduction in system quality and performance is at an acceptable level. Examples of Soft real time systems :  Multimedia transmission and reception  Networking, telecom (Mobile) networks  websites and services  Computer games
  • 64. Components of an RTOS  Process (task) management  Scheduler  Synchronization mechanism Interprocess communication (IPC) Semaphores  Memory management  Interrupt service mechanism  I/O management , H.A.Layer  Development Environments  Communication subsystems (Option)  Board Support Packages (BSP)
  • 65. Features of RTOS’s  Predictability  Timeliness  Reliability  Fault tolerant  Efficiency of System Components  Resource Allocation.  Interrupt Handling.  Other issues like kernel size.
  • 66. Types of RTOS Commercial RTOSs  VxWorks  QNX  MicroC/OS-II  RTLinux  Windows CE ( www.microsoft.com)
  • 67. VxWorks  This is from Wind River (www.windriver.com).  One of the most popular real time operating system  This has been used in the Mars pathfinder  It supports a number of processors including Power Pc, Intel strong ARM,ARM,Hitachi SuperH, Motorola ColdFire etc…  It supports multiple scheduling algorithm and also priority inheritance
  • 68. QNX Neutrino  It is a popular real time operating system from QNX software systems limited (www. qnx.com)  It supports a number of Processors namely ARM,MIPS,Power PC,SH-4,X86 &Pentium…  It has support for C,C++ and Java languages and TCP/IP protocol stack.  This supports multiple scheduling algorithms and up to 65,535 tasks. My SQL can be integrated with this OS to create embedded database applications.  Even small embedded systems can use this OS as it requires 64K Kernel ROM and 32K kernel RAM.
  • 69. MicroC/OS-II  Microcontroller operating system version –II is developed by Jean J.Labrosse(www.ucos- II.com)is a preemptive real-time operating system which is popular in academic institutions for teaching RTOS concepts.  It can support only 64 tasks out of which eight are system tasks  Round-robin scheduling algorithm is not supported by this OS
  • 70. RTLinux  This OS was developed by FSM Labs(www.fsmlabs.com) and available in two versions RTLinux Pro and RTLinuxFree.  The RTLinux Pro is the priced edition and RTLinux Free is the free open source release.  RTLinux is a hard real-time operating system with support for many processors such as x86,Pentium,PowerPC,ARM,Fujitsu,MIPS and Alpha  It does not support priority inheritance.
  • 71. Windows CE  Windows CE (also known officially as Windows Embedded Compact and sometimes abbreviated WinCE) is an operating system developed by Microsoft for minimalistic computers and embedded systems.  Windows CE is optimized for devices that have minimal storage—a Windows CE kernel may run in under a megabyte of memory
  • 72.  The system supports 256 priority levels and uses priority inheritance for dealing with priority inversion. The fundamental unit of execution is the thread. This helps to simplify the interface and improve execution time.  A distinctive feature of Windows CE compared to other Microsoft operating systems is that large parts of it are offered in source code form.
  • 73. Programming languages Used  C is most widely used in RTOS programming  C++ and Ada are the next more popular for large projects.  Assembly languages for increasing efficiency and reusing the previous code  Java may also be a choice for some applications
  • 74. Which is the Best?  It is always very difficult to judge which RTOS is the best and which is the worst.It depends on the application and interests of the user. Among the above, Linux is royalty free but it has serious drawbacks if it comes to real-time behavior. The VxWorks is a very old and stable RTOS. Similarly Windows CE 5.0 version RTOS is a robust and stable regarding the real-time behavior.
  • 75. REFERENCES  Modern Operating Sytems- Andrew S. Tanenbaum (PHI)  Operating Systems –W. Stallings (PHI)  Operating system Concepts-Avi Silberschatz & Peter Baer Galvin.  Operating Systems-D. M. Dhamdhere- TMH