Controlling Interrupts

This lesson discusses the pros and cons of manipulating interrupts as a mechanism for locks.

One of the earliest solutions used to provide mutual exclusion was to disable interrupts for critical sections; this solution was invented for single-processor systems. The code would look like this:

Get hands-on with 1200+ tech skills courses.