Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The easiest and fastest way to gain exclusive access to a shared resource is by disabling and enabling interrupts, as shown in the pseudo-code in the listing below.


Code Block
languagecpp
titleDisabling and Enabling Interrupts
              Disable Interrupts;
              Access the resource;
              Enable  Interrupts;

...