Professional Documents
Culture Documents
Embedded Systems Assignment2 - 1MS09EC062
Embedded Systems Assignment2 - 1MS09EC062
Software - Assignment 2
Naveen N. Murthy [1MS09EC062]
March 31, 2013
Solution:
d. The time taken for the ISR to save the context and accomplish the
desired response: The shorter the ISR, the faster it can be serviced
and the processor can go back to its main task.
9) [Q17] Explain the reasons why the systems with conventional OS fail
to respond to real time problems. Also, explain how these are taken care in
RTOS.
Solution:
Some reasons to explain the fast response of RTOS in comparison with
conventional OS are given below.
On a desktop computer the operating system takes control of the
machine as soon as it is turned on and then starts the applications.
In an embedded system, at boot-up time, the application usually gets
control first, and it then starts the RTOS. Thus, the application and
the RTOS are much more tightly tied to one another than are an
application and its desktop operating system.
Conventional OS try to protect themselves from their applications such
as checking the validity of any pointer passed into a system function.
Many RTOSs skip this step in the interest of better performance and
hence, a very fast response time is obtained.
Whether they need it or not, conventional OSs contain system functions
as file managers, I/O drivers, utilities, and memory management.
RTOSs typically include just the services that are needed for the
embedded system and this can be configured beforehand by the user.
Schedulers in RTOSs are more simple-minded than conventional OS.
They just schedule tasks depending on the assigned priority, and thus
the pre-assigned priority order is very important.
10) [Q19] Differentiate between hard and soft RTOS highlighting the
advantages and disadvantages of each.
Solution:
Hard RTOS
Systems with absolute deadlines, such as high risk systems including
nuclear reactor systems, are called hard real-time systems.
When an event occurs, it should be serviced within the predictable time
at all times in a given hard real time system [2]..
Predictability is achieved by making sure that the functions always
take the same predefined time intervals in case of varying rates of
occurrences of the events.
Tasks that avoid semaphores for data protection are preferable, since
their worst case performance does not depend upon characteristics of
every other task that uses the semaphore.
Examples: Automobile engine control system and anti-lock brake.
Advantages
References
[1] Simon, D., 2005 An Embedded Software Primer Pearson Education, First
Edition
[2] Kamal, R., 2008 Embedded Systems - Architecture, Programming and Design
McGraw-Hill Publications