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 | ||||
---|---|---|---|---|
| ||||
Disable Interrupts; Access the resource; Enable Interrupts; |
...
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 | ||||
---|---|---|---|---|
| ||||
Disable Interrupts; Access the resource; Enable Interrupts; |
...