This example also shows how to send data to the pc by means of System.
MicroOS has two main goals: make multitasking easy cfr. In a traditional sense, yes, this is not an OS that you make from scratch. Then the processor returns to the main program.
A microcontroller will run just one program repeatedly — not a full operating system. Each of those protocols comes with its own temporal cost as well.
If you need real-time response, you typically use one of three options: no operating system. Sensors give you the ability to detect the environment and the world around you.
We use them today because their low-powered and low memory makes them low-cost.