Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In software
engineering, busy-waiting or spinning is a technique in which a process
repeatedly checks to see if a condition is true, such as whether
keyboard input is available, or if a lock is available. Spinning can
also be used to generate an arbitrary time delay, a technique that was
necessary on systems that lacked a method of waiting a specific length
of time. On modern computers with widely differing processor speeds,
spinning as a time delay technique often produces unpredictable results
unless code is implemented to determine how quickly the processor can
execute a "do nothing" loop.