6.3 Shared Resources
A shared resource in this application is the OLED screen. Both the main task and the clock task want to write to the display, but only one can do so at a time. If two tasks try to write to the screen simultaneously, the program might crash, or we could get some unpredictable behavior. The process of writing to the OLED is, therefore, protected by a mutex.