A smart home hub uses a single-core processor to run multiple tasks (like managing temperature sensors, processing security alerts, and updating its display) at the same time.
This system relies on multitasking.
Describe how the operating system manages the single-core processor to allow these multiple tasks to run.