Operating System: Assignment # 2
Operating System: Assignment # 2
Assignment # 2
Group Members:
Habib Ur Rehman (049)
Shahab Mughal (024)
BAHRIA UNIVERSITY
ISLAMABAD CAMPUS
Real Time Systems
Realtime system:
A real-time system is any information processing system which has to
respond to externally generated input stimuli within a finite and specified
period. It 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.
Uses:
Flight control system.
Real time monitors.
Commands and Control systems.
Defence and space systems.
Networked multimedia systems.
Embedded automotive electronics.
Types of Real Time System:
Hard Real-Time System
Soft Real-Time System
Hard Real-Time System
A real time system is a data processing system. The time taken by the
system to respond to an input and provide the output or display the updated
information is known as the response time. So, in these systems, the
response time should be very minimum. The system should complete the
task within the deadline. In a real-time operating system, the correctness of
the system output depends on the logical result of computation as well as the
time it takes to produce the result.
Soft Real Time System
In a soft real time, system, the time requirement is not very crucial. The
system should perform the task or give the output within the deadline but
there can be a small tolerance occasionally. If the system, did not perform
the task within the deadline it is not considered as a failure as long as it
provides the required output. But performance is considered to be degraded.
Missing the deadline will not cause a catastrophic event like in a hard-real
time system.
Hard vs Soft Real Time System
A hard-real time system is a system in which a A soft real time system is a system in which one or
failure to meet even a single deadline may lead to more failures to meet the deadline is not considered
complete or catastrophic system failure. as complete system failure but that performance is
considered to be degraded.
Restrictive Nature
A Hard-real time system is very restrictive. A Soft real time system is not very restrictive.
Deadline
A Hard-real time system should not miss the A Soft real time system can miss the deadline
deadline. Missing the deadline cause complete or occasionally. Missing the deadline is not
catastrophic system failure. considered as a complete system failure but
degrades the performance.
Utility
A hard-real time system has more utility. A soft real time system has less utility.
Examples
Air traffic control systems, missile, and nuclear Multimedia streaming, advanced scientific projects,
reactor control systems are some examples of and virtual reality are some examples of soft real
hard real time systems. time systems.
Static Priority:
In this priority technique developers defines the priorities statically. They
assign highest priority to these tasks they think the most important.
Shortest Job first:
When process enters it is prioritized according to its time of execution.
Shortest job first is a scheduling policy that selects for execution the waiting
process with the smallest execution time. If there is pre-emption then if the
low priority task is running and highest priority job or process is ready to
run then lower priority process will stop and highest priority job gets CPU
time.
Proportional share Scheduling:
In this technique processes have their weights according to these weights’
scheduler defines a share of resources for each process.