RTOS(Real Time Operating System) vs GPOS(General Purpose Operating System)
RTOS | GPOS | |
Where to use | Timing critical applications(i.e. airbag deployment after the crash, VxWorks, FreeRTOS) | Desktop and server applications(i.e. Windows, Linux, iOS) |
Task switching Latency and Response time | Almost constant(deterministic) | Big deviation(non-deterministic) |
Scheduling | Time-based scheduling, the high-priority task is executed over low-priority tasks | Process-based scheduling, optimized for throughput. |
Latency types
Interrupt Latency(Time from IRQ occurs to ISR executed)
Scheduling Latency(Time from after ISR execution to resume regular schedule called context switching operation)