An embedded smart home hub uses a single-core microcontroller running a multitasking operating system to concurrently process sensor data feeds, update a local LCD display, and transmit alerts to a cloud server.
Explain how the operating system's scheduler manages the execution of these competing tasks on the single-core CPU, and how it ensures all tasks appear to run simultaneously.