Advertisement
AnindyaBiswas

RTOS

Apr 28th, 2022 (edited)
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. Real Time Operating System
  2. A real-time operating system (RTOS) is a special-purpose operating system used in computers that has strict time constraints for any job to be performed. While a time-sharing OS just tries to keep the processing time minimum, RTOS has to do the processing in a specific time constraint. When an external event occurs, it is communicated to the machine using a signal, which is interpreted as an interrupt by the OS. The OS then invokes a specific process, which runs uninterrupted unless a higher priority interrupt occurs. Thus, there must be a hierarchy of priority for interrupts. While executing a higher interrupt process, the other ones should be kept in a buffer.
  3.  
  4. Why Real Time Operating Systems are needed?
  5. RTOSs are used in environments where processes must be executed within specific deadlines.
  6. Some of the applications of RTOSs are:
  7. • Missile guidance systems
  8. • Cell phone switching
  9. • Fuel injection systems
  10. • Medical Imaging systems
  11. • Airline traffic control systems
  12.  
  13. Types of RTOS
  14.  
  15. Real-time operating systems can be of 3 types:
  16. 1. Hard Real-Time Operating System
  17. In Hard RTOS, all critical tasks must be completed within the specified time duration, i.e., within the given deadline. Not meeting the deadline would result in critical failures.
  18. Example: Airbag deployment systems, stock trading systems
  19. 2. Soft Real-Time Operating System
  20. Soft RTOS accepts a few delays via the means of the Operating system. In this kind of RTOS, there may be a closing date assigned for a particular job, but a delay for a small amount of time is acceptable.
  21. Example: Online Transaction systems.
  22. 3. Firm Real-time Operating System
  23. In Firm RTOS additionally want to observe the deadlines. However, lacking a closing date might not have a massive effect, however may want to purposely undesired effects.
  24. Example: Multimedia applications
  25. Advantages
  26. • Maximum utilization of devices and systems. Thus, more output from all the resources.
  27. • Time assigned for shifting tasks in these systems is very less.
  28. • Focus on running applications and less importance to applications that are in the queue.
  29. • Since the size of programs is small, RTOS can also be embedded systems like in transport and others.
  30. • These types of systems are error-free.
  31. • Memory allocation is best managed in these types of systems.
  32.  
  33. Disadvantages
  34. • Very few tasks run simultaneously, and their concentration is very less on few applications to avoid errors.
  35. • The algorithms are very complex and difficult for the designer to write on.
  36. • It needs specific device drivers and interrupts signals to respond earliest to interrupts.
  37. • It is not good to set thread priority as these systems are very less prone to switching tasks.
  38. • RTOS performs minimal task switching.
  39.  
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement