Closed maxxlife closed 1 month ago
If you go to text you will see the order of the forever loops. However each forever loop as a yield and gives the control back to another at the end of one iteration. So all 3 loops will run once at a time.
System is single thread non-preemptive system. Only one works at the time but can yield to others on its own. We put a yield at the end of forever as per design.
question answered
If a multiple forever loops have access to the common resource, how do to they define who is gonna take it first?