Real Time System Assignment
Real Time System Assignment
Unit-1
2 marks
State whether the following statements are TRUE or FALSE. Justify
your answer.
Soft real‐time tasks do not have any associated time bounds. The
statetement is FALSE.
This is because Soft real‐time tasks also have time bounds
associated with them.
Instead of absolute values of time, the constraints are expressed in
terms of the average response times required.
10) The goal of any good real‐time operating system to complete every
hard real‐time task as ahead of its deadline as possible.
5 marks
1) What do you understand time and hard real time? Explain with suitable
example?
Real time is a level of computer responsiveness that a user senses
as sufficiently immediate or that enables the computer to keep up
with some external process (for example, to present visualizations of
the weather as it constantly changes.
Real-time is an adjective pertaining to computers or processes that
operate in real time. Real time describes a human rather than a
machine sense of time.
Real time system means that the system is subjected to real time,
i.e., response should be guaranteed within a specified timing
constraint or system should meet the specified deadline. For
example: flight control system, real time monitors etc.
In a real‐time application, the notion of time stands for the absolute
time which is quantifiable. In contrast to real time, logical time, used
in most general category applications, deals with a qualitative notion
of time and are expressed using event ordering relations.
For example, consider the following part of the behavior of library
automation software used to automate the bookkeeping activities of a
college library: “After a query book command is given by the user, the
details of all the matching books are displayed by the software”.
2) Explain the significance of the term real. What do you mean by a real
time system explains with example?
This type of system can never miss its deadline. Missing the deadline
may have disastrous consequences.
The usefulness of result produced by a hard real time system
decreases abruptly and may become negative if tardiness increases.
Tardiness means how late a real time system completes its task with
respect to its deadline.
Example: Flight controller system.
This type of system can miss its deadline occasionally with some
acceptably low probability. Missing the deadline has no disastrous
consequences.
The usefulness of result produced by a soft real time system
decreases gradually with increase in tardiness.
Example: Telephone switches.
3) Using a block diagram represent the hardware component of a real time
system. Explain their rules and interaction?
4) Explain the important differences between hard, firm and soft real‐
time systems?
5) Identify the timing constraints in your task given with the example and
how they can be categorized into hard, soft, firm real time task?
6) Explain the key difference between a soft real time task and non real
time task with example?
A soft real-time system on the other hand will tolerate such lateness,
and may respond with decreased service quality (e.g., omitting
frames while displaying a video).
Soft real-time systems are typically used where there is some issue
of concurrent access and the need to keep a number of connected
systems up to date with changing situations.
A non real time tasks are batch processing jobs, e –mail and
background tasks such an event loggers.
We may, however, argue that even these tasks, in the strict sense of
the term, do have certain time bounds.
An email is expected to reach its destination at least within a couple
of hours of being sent.
similar is the case with a batch processing job such a pay-slip printing
what then reality is the difference between a non real task and a soft
real time task for non real time tasks
The associated time bounds are typically of the order of a few
minutes hours or even days .in contrast the time bounds associated
with soft real time tasks are at most of the order.
Dynamic Tasks
It is a sequential program that is invoked by the occurrence of an
event. An event may be generated by the processes external to the
system or by processes internal to the system. Dynamically arriving
tasks can be categorized on their criticality and knowledge about their
occurrence times.
1. Aperiodic Tasks: In this type of task, jobs are released at arbitrary
time intervals i.e. randomly. Aperiodic tasks have soft deadlines or no
deadlines.
2. Sporadic Tasks: They are similar to periodic tasks i.e. they repeat at
random instances. The only difference is that sporadic tasks have hard
deadlines. A speriodic task is denoted by three tuples: Ti =(ei, gi, Di)
Where
ei – the execution time of the task.
gi – the minimum separation between the occurrence of two
consecutive instances of the task.
Di – the relative deadline of the task.
Time constraints
8) Mention any two important sensors devices and two actuator devices
use in real time applications and mention their working principle?
Temperature sensors
Actuators
Robotic arms
One actuator is robotic arms that are mainly used in the manufacture
company of any car and bike. The robotic adjusts the parts of car
inside the cabinet.
9) Design a model for highlighting the component of hard real time system
also explain how to perform digital to analog and analog to digital
conversion via different interface?
The idea is to implement the same principles, but also taking into
consideration features of existing components which might be used in
the system.
This means that the system is designed not only in accordance with
the system requirements, but also with respect to existing
components. This concept assumes that a library of well-defined real-
time components is available.
10) In a hard RTS is it necessary that every task in the system will be of
hard real time type? Explain with example.
Most modern operating systems can serve as the base for soft real
time systems. Examples: multimedia transmission and reception,
networking, telecom (cellular) networks, web sites and services,
computer games.
11) In the context of real time fault tolerance explain software and hardware
failure?
Fault Tolerance
Failure
A failure is a term used to describe an issue with the computer or a
device that prevents it from functioning properly. For example, when
a hard drive fails (hardware failure), it prevents the computer from
booting and prevents it from working again until it is replaced.
Hardware Failure
Software Failure
Two methods are now popularly being used to achieve software fault-
tolerance: N-version programming and recovery block techniques.
These two techniques are simple adaptations of the basic techniques
used to provide hardware fault-tolerance. We discuss these two
techniques in the following.
N-Version Programming:
Recovery Blocks
Checkpoint-Recovery
Rollback recovery
14) What are the main technique available to achieve hardware fault
tolerance and why it is easier than software fault tolerance?
The popular technique to achieve hardware fault‐tolerance is through
redundancy.
3) Environmental harm
It will crash, and it wastes lot of time and money to create a new
system, and if the system is crash it will not work as a real time
system.
It loses the reliability, therefore it is necessary to hard real time
systems that safety and reliability depends on each other, and thus
system works as a true hard real time system.
For ex- word processing software may not be a reliable but is safe,
Software Reliability is an important to attribute of software quality,
together with functionality, usability, performance, serviceability,
capability, install ability, maintainability, and documentation. Software
Reliability is hard to achieve, because the complexity of software
tends to be high. While any system with a high degree of complexity,
including software, will be hard to reach a certain level of reliability,
system developers tend to push complexity into the software layer,
with the rapid growth of system size and ease of doing so by
upgrading the software.
For example, large next-generation aircraft will have over one million
source lines of software on-board; next-generation air traffic control
systems will contain between one and two million lines; the upcoming
international Space Station will have over two million lines on-board
and over ten million lines of ground support software; several major
life-critical defense systems will have over five million source lines of
software. While the complexity of software is inversely related to
software
18) What is a safety critical system? Is all real time system safety critical? If
not then justify why such system cannot be exits?
Non all real time system are not safety critical because