Firmware · RTOS: tasks and scheduling
Tasks need to pass data to each other safely, and a queue does this in a way that has consequences for your variables.