RTOS, Tasks and Mutexes to the rescue
While the global while(1) loop is a great place to manage several simple operations that do not need to run concurrently, in a more complex setup, we might need a parallel execution of the tasks. Yes, that already sounds like using an Operating System. But unlike…