RTOS(Real Time Operating System) vs GPOS(General Purpose Operating System)

RTOSGPOS
Where to useTiming 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 timeAlmost constant(deterministic)Big deviation(non-deterministic)
SchedulingTime-based scheduling, the high-priority task is executed over low-priority tasksProcess-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)