Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
3 views5 pages

OS CHP1 - Real-Time Operating System

The document provides lecture notes on Real-Time Operating Systems (RTOS), detailing their definition, types (hard, soft, and firm), features, applications, and factors for selection. It emphasizes the importance of RTOS in fields requiring strict deadlines and quick responses, such as aviation and medical devices. Additionally, it discusses the advantages and disadvantages of RTOS, highlighting their resource efficiency and complexity.

Uploaded by

Deeksha Verma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

OS CHP1 - Real-Time Operating System

The document provides lecture notes on Real-Time Operating Systems (RTOS), detailing their definition, types (hard, soft, and firm), features, applications, and factors for selection. It emphasizes the importance of RTOS in fields requiring strict deadlines and quick responses, such as aviation and medical devices. Additionally, it discusses the advantages and disadvantages of RTOS, highlighting their resource efficiency and complexity.

Uploaded by

Deeksha Verma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

LECTURE NOTES

on
OPERATING SYSTEM
(ICS-401)

2023 – 2024

B. Tech IIIrd Sem e s t e r


Mr. Deepanshu Singh Yadav, Assistant Profes so r
Ms. Diksha Sharma, Assistant Profes so r

Sitapur Road, Lucknow


Uttar Pradesh
India
Pin Code :226021

INSTITUTE OF ENGINEERING
&TECHNOLOGY

Department of Computer Science and Engineering

Mr. Deepanshu Singh Yadav , Assistant Professor ,IET,LUCKNOW Page 1


Ms.Diksha Sharma, Assistant Professor ,IET,LUCKNOW
REFERENCES :
1. Silberschatz, Galvin and Gagne, “Operating Systems Concepts”, Wiley
2. Harvey M Dietel, “ An Introduction to Operating System”, Pearson Education
3. William Stallings, “Operating Systems: Internals and Design Principles ”, 6th Edition, Pearson
Education
4. D M Dhamdhere, “Operating Systems : A Concept based Approach”, 2nd Edition
5. Sibsankar Halder and Alex A Aravind, “Operating Systems”, Pearson Education
6. Rajiv Chopra, “ Operating System a Practical approach”, S.Chand
7. I.A.Dhotre, “Operating System”,Technical Publications.
8. codeforwin.org/
9. https://www.prepbytes.com/
10. Tutorials point

Disclaimer: The e-content is exclusively meant for academic purposes and for enhancing teaching and
learning. Any other use for economic/commercial purpose is strictly prohibited. The users of the content shall
not distribute, disseminate or share it with anyone else and its use is restricted to advancement of individual
knowledge. The information provided in this e-content is developed from authentic references, to the best of
my knowledge.

Mr. Deepanshu Singh Yadav , Assistant Professor ,IET,LUCKNOW Page 1


Ms.Diksha Sharma, Assistant Professor ,IET,LUCKNOW
What is a Real-Time Operating System (RTOS)?
• Let us start our discussion with a real-life scenario. Suppose a driver is driving a car and the car meets
with an accident. Now we want the airbags of the car to immediately open up. Even if there is a slight
delay, the driver could get injured and the whole purpose of the airbags gets destroyed.
• A real-time operating system (RTOS) is an operating system that is used in computing systems that
needs strict completion deadlines for all the tasks that need to be performed on it.
• Here the system is connected to an external event, whenever that event is completed a signal is sent to
the system with the help of a sensor. Now that signal is communicated to the system as an interrupt.
After the operating system receives an interrupt, it initiates a process that is associated with it. Once the
interrupt is completed, the operating system handles the power back to the CPU. Now since all this is
happening in real-time and there's a need for a quick response from the system speed is very important
here.
Why Use an RTOS?
• There are certain fields like flight control, telephone switching equipment, and real-time simulations that
require a large number of external events to be processed in a short period of time. In these cases we use
RTOS.
• These processes are connected to the real-time operating system, these operating system executes these
tasks quickly.
• Some examples of these fields are Airline traffic control systems, Command Control Systems, airline
reservation systems, Heart Pacemaker, Network Multimedia Systems, etc.
Types of Real-Time Operating System:

The Real-Time Operating System is of three types:


1. Hard Real-Time Operating System:
A hard real-time operating system is used when we need to complete tasks by a given deadline. If the task is
not completed on time then the system is considered to be failed.
For example, the pacemaker. A pacemaker has flexible, insulated wires (leads) that are placed in one or more
chambers of the heart. These wires deliver electrical pulses to adjust the heart rate. And these wires require a
hard real-time operating system.
2. Soft Real-Time Operating System:
A soft real-time operating system is used where few delays in time duration are acceptable. That is if the given
task is taking a few seconds more than the specified time then also no critical damage takes place.
For example, telephone switches, the sending or receiving of the call can take some time. It will not be
considered a failure.

Mr. Deepanshu Singh Yadav , Assistant Professor ,IET,LUCKNOW


Page 1
Ms.Diksha Sharma, Assistant Professor ,IET,LUCKNOW
3. Firm Real-Time Operating System:
A firm real-time operating system lies between the hard and soft real-time operating system. A firm real-time
system is one in which a few missed deadlines will not lead to total failure, but missing more than a few may
lead to complete or catastrophic system failure. However, unlike a hard real-time task, even if a firm real-
time task is not completed within its deadline, the system doesn’t fail but the late results are merely discarded.
For example, in Video Conferencing, when a certain frame is being played, if some preceding frame arrives
at the receiver, then this frame is of no use and is discarded.
Features of Real-Time Operating System (RTOS):
The important features of RTOS are:
• The response time of RTOS is highly predictable. That is we can guess the time system will take to complete the
task.
• All the interrupt requests go to the Kernel. The kernel is responsible for making all the decisions.
• Kernel saves the state of each task and decides which task to execute next. Task management and task scheduling
are done by the kernel.
• After the interrupt task is executed, the kernel gives control back to the CPU. Then CPU carries on with other
processes.
• RTOS occupies very little space. Since the size of programs used in RTOS is small.
• RTOS consumes very less resources. Since maximum utilization of resources (memory, registers, clocks,
etc.) happens in RTOS, we can also start our system with fewer resources.

Applications of Real-time Operating System (RTOS):


Some real-life applications of RTOS are:
• Systems that provide immediate updating.
• Used in any system that provides up-to-date and minute information on stock prices.
• Defense application systems like RADAR.
• Airlines reservation system.
• Command Control Systems.
• Air traffic control system.
• Networked Multimedia Systems.
• Internet Telephony.
• Heart Pacemaker.
• Anti-lock Brake Systems.

Factors for Selecting an RTOS:


A few factors to be considered while selecting RTOS are:
1. Security Since the real-time application needs to be connected to the internet most of the time, security
becomes the most important factor in selecting RTOS.
2. Environment It's very important to check whether the RTOS that we are using goes well with our other
systems. We should consider the latest RTOS with good support features.
3. Features Before selecting an RTOS, it is advised to look into all of its specifications. Like memory
allocations, resources required, number of tasks to be processed, etc., and should select the one which
matches our requirements.
4. Middleware In order to integrate the RTOS into our present system, we need some middleware.
Middleware is software that lies between an operating system and the applications running on it. Thus good
middleware can save our time and make the integration fast.
5. Performance Since RTOS is all about real-time application performance becomes a very important
criterion it. The better the performance, the better the system.
Examples of Real-time Operating System (RTOS)
Some popular real-life examples of RTOS are:

• PCOS: RTOS is widely used in embedded applications and PCOS is one example of embedded
RTOS.

Mr. Deepanshu Singh Yadav , Assistant Professor ,IET,LUCKNOW


Page 1
Ms.Diksha Sharma, Assistant Professor ,IET,LUCKNOW
• RT Linux: RT Linux stands for Real-time Linux. It operates on a Linux system. The real-time
operating system is used between the Linux system and the hardware.
• Lynx: Lynx is a microkernel-based RTOS that is fully Linux-compatible, a Linux program’s binary
image can be effectively run on Lynx.
Advantages of Real-time Operating System:
A few advantages of a Real-time operating system are:
• Easy to use: It is easy to develop and execute real-time applications in real-time operating systems.
Since it allows to break complex problems into multiple simple tasks that are easy to define and
process.
• Optimal Resource Utilization: Due to good resource management of the RTOS system by Kernel,
resources like devices and systems are utilized most efficiently.
• Less space requirement: The real-time systems are very compact thus they need very less space.
• Used in Embedded System: Since the Real-time systems are compact in size they can easily be
used in the embedded systems.
• Error Free: The real-time systems are usually error-free since the RTOS error manager, EM(), is
called whenever an error is detected by an RTOS service or by the RTOS itself.
Disadvantages of Real-time Operating System:
A few disadvantages of a Real-time operating system are:
• Costly: The hardware requirements like device drivers are a bit expensive.
• Complex: The algorithms and programs used in real-time systems are complex.
• Limited Tasks: The tasks or programs that real-time systems can process at a given time are limited.

Mr. Deepanshu Singh Yadav , Assistant Professor ,IET,LUCKNOW


Page 1
Ms.Diksha Sharma, Assistant Professor ,IET,LUCKNOW

You might also like