Submitted To
Badruduja Bhuiya
Lecturer
Department of Textile Engineering
Southeast University
Submitted By
Md.Ashraful Hoque
ID:2012000400121
Batch:19th(3)
The Real Time systems are used in the environments where a large number of events (generally
external to the computer system) is required to be accepted and is to be processed in the form of
quick response. Such systems have to be the multitasking. So the primary function of the real
time operating system is to manage certain system resources, such as the CPU, memory, and
time. Each resource must be shared among the competing processes to accomplish the overall
function of the system Apart from these primary functions of the real time operating system there
are certain secondary functions that are not mandatory but are included to enhance the
performance.
Characteristics of real-time systems
A typical real-time operating environment is in this figure we note that the computer system has
an interface which is embedded within its environment. The operating system achieves the
desired extent of regulation as follows:
Sense an event: The system monitors its operative environment using some sensors.
These sensors keep a tab on some measurable entity. Depending upon the context of use
this entity may be a measure of temperature, or a stock price fluctuation or fluid level in a
reservoir. These measurements may be periodic. In that case the system would accept an
input periodically. In case the measurement of inputs is taken at specified times of
operation then the OS may schedule its input at these specified times or it may be
interrupted to accept the input. The input may even be measured only when an unusual
deviation in the value of the monitored entity occurs. In these cases the input would
certainly result in an interrupt. Regardless of the input mode, the system would have an
input followinga sensor reading (which is an event).
Process the data: The next important task is to process the data which has been most
recently acquired. The data processing may be aimed at checking the health of the
system. Usually it is to determine if some action is needed.
Decide on an action: Usually, the processing steps involving arriving at some decisions
on control settings. For instance, if the stock prices cross some threshold, then one has to
decide to buy or sell or do nothing. As another example, the action may be to open a
valve a little more to increase inflow in case reservoir level drops.
Take a corrective action: In case, the settings need to be altered, the new settings are
determined and control actuators are initiated. Note that the actions in turn affect the
environment. It is quite possible that as a consequence, a newest of events get triggered.
Also, it is possible that the corrective step requires a drastic and an immediate step. For
instance, if an alarm is to be raised, then all the other tasks have to be suspended or preempted and an alarm raised immediately. Real-time systems quite often resort to preemption to prevent a catastrophe from happening.
Advantages of Real Time Operating System: Maximum Consumption: - RTOS give maximum consumption of the system and gives
us more output while using all the resources and keeping all devices active. There is little
or no down time in these systems. So it can be also using by the servers that are hosted to
give maximum output of hosting companies.
Task Shifting: - There is very little time assigned to shifting tasks in these systems. For
example in older systems it takes about 10 micro seconds in shifting one task to another
and in latest systems it takes 3 micro seconds.
Focus on Application: - These type of operating system focus on applications which are
running and usually give less importance to other application residing in waiting stage of
life cycle. So less applications or tasks are managed and give exact result on current
execution work.
Real time operating system in embedded system: - Due to small size of programs
RTOS can also be used in embedded systems like in transport and others.
Error Free: - RTOS is error free that mean it has no chances of error in performing
tasks.
24-7 systems: RTOS can be best used for any applications which run 24 hours and 7
days because it do less task shifting and give maximum output.
Memory Allocation: - Memory allocation is best managed in these type of systems.
Limited Tasks .
Use heavy system resources.
Low multi-tasking.
Complex Algorithms.
Device driver and interrupt signals.
Thread Priority.
Expensive.
Not easy to program.
Low Priority Tasks.
Precision of code.
Other factors: - There are lot of factors needed to consider like memory management,
CPU and error handling.
RTOS are generally complicated and can consume a non-trivial amount of processor
cycles.
Introduction of VxWorks
VxWorks is a real-time operating system (RTOS) developed as proprietary software by Wind
River of Alameda, California, US. First released in 1987, VxWorks is designed for use in
embedded systems requiring real-time, deterministic performance and, in many cases, safety and
security certification, for industries, such as aerospace and defense, medical devices, industrial
equipment, robotics, energy, transportation, network infrastructure, automotive, and consumer
electronics. It is a high performance, Unix like, scalable RTOS, and supports ARM, Pentium,
Intel X-Scale, Super H and other popular processors for embedded system design. VxWorks
design is hierarchical and well suited for hard real time applications. VxWorks is supported with
powerful development tools that make it easy and efficient to use. Many simulation tools, timeperformance analysis tools, debug and test tools are provided, making VxWorks as an RTOS that
supports development of almost any embedded application, providing a complete solution for all
stages of the design cycle. The latest version VxWorks 6.9 is the first commercial-grade RTOS
to fully support both 32-bit and 64-bit processing on Intel Architecture.
Basic Features/Advantage:
1. Multitasking environment using standard POSIX scheduler
2. Ability to run two concurrent Operating systems on a single processing layer
3. Multiple file systems and systems that enable advanced multimedia functionality
4. Synchronization using a full range of IPC options
5. Different context saving mechanisms for the tasks and ISRs
6. Virtual IO devices including pipes and sockets
7. Virtual memory management functions
Limitation of VxWorks
Maintain properly.
Need trained or special engineer.
High cost.
It is a complex term &Need to understand.
Not easy to program.
Applications :
VxWorks RTOS is widely used in the market, for a great variety of applications. Its reliability makes
it a popular choice for safety critical applications.
VxWorks has been successfully used in both military and civilian avionics, including the Apache
Attack Helicopter, Boeing 787, 747-8 and Airbus A400M. It is also used in on ground avionic
systems such as in both civilian and military Radar stations. Another safety critical application that
entrusts VxWorks is BMWs i-Drive system. However, VxWorks is also widely used in non-safetycritical applications where performance is at premium. The Xerox Phaser, a post-script printer is
controlled by a VxWorks powered platform. Link Sys wireless routers use VxWorks for operating
switches.
VxWorks has been used in several space applications. In Space crafts, where design challenges are
greatly increased by the need of extremely low power consumption and lack of access to regular
maintenance, VxWorks RTOS can be chosen as the operating system for On Board Computer
[OBC].
For example, Clementine launched in 1994 is running VxWorks 5.1 on a MIPS-based CPU
responsible for the Star Tracker and image processing algorithms. The Spirit and Opportunity
Mars Exploration Rovers were installed with VxWorks. VxWorks is also used as operating system in
several industrial robots and distributed control systems.
Conclusion:
The need to develop for real-time embedded applications is always a challenge, especially when
expensive hardware is at risk. The complex nature of such systems requires many special de-sign
considerations, an understanding of physical systems, and efficient management of limited resources. Perhaps one of the most difficult choices the embedded system designers have to make is
which operating system they are going to use. It is critical to have operating system that will be able
to be fail-safe, secure, scalable, fast and robust in multitask management, while being friendly to the
application developers. VxWorks is an RTOS which meets almost all of these requirements.
Bibliography:
www.windriver.com
Embedded Systems Architecture, Programming and Design by RajKamal
www.wikipedia.com
www.slideshare.com
www.scribd.com