IT lexicon › Programming › OS abstraction layer (OSAL)

OS abstraction layer (OSAL)

Programming På svenska → Updated: 2026-11-04

A thin layer that maps generic calls for threads, queues and mutexes onto whichever RTOS happens to sit underneath.

Firmware outlives its operating systems. A library that calls xSemaphoreTake() directly is welded to FreeRTOS; one that calls os_mutex_lock() can move to Zephyr, Linux or plain bare metal by swapping a single file. NASA's core Flight System is built on such an OSAL and has flown on both VxWorks and RTEMS, and ARM's CMSIS-RTOS is essentially the same idea turned into a standard.

The catch is the lowest common denominator. One RTOS has priority inheritance and another doesn't; one demands separate variants of calls made from interrupts and another couldn't care less. Either the layer hides the differences and lies a little, or it exposes them and stops being abstract. Most projects end up somewhere in between.

← Back to the lexicon