Wasting cycles – synchronization by polling

The following example has the exact same behavior as when we're looking at LEDs from the outside of the board  the observable pattern of the LEDs is exactly the same as the previous example. The difference is how much CPU time is being used by continuously reading the same variable.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.134.102.182