Types of locks

The type of lock determines what happens when a function on one processor in an MP system makes an unconditional request for a lock that is held by another unit of work on another processor. There are two major types of locks: spin and suspend. The CPU lock is in a category by itself but could be considered a pseudo spin lock. Descriptions of these types of locks follow: