From Wikipedia, the free encyclopedia - View original article
The spinning pinwheel, also known as the spinning wheel of death, rainbow wheel, color wheel, beach ball, pinwheel or BBOD (beach ball of death) is a pointer in Apple's Mac OS X that indicates an application is not responding to system events. It has also been referred to as the spinning beach ball or, unofficially, the Spinning Beach Ball of Death or the Marble of Doom. The OS X Human Interface Guidelines officially refers to it as the spinning wait cursor, noting also that the developer term cursor is equivalent to the user term pointer.
A wristwatch was the first wait cursor in early versions of Mac OS. Apple's HyperCard first popularized animated cursors, including a black and white spinning quartered circle resembling a beach ball. The cursors could be advanced by repeated HyperTalk invocations of "set cursor to busy". The beach ball cursor was also adopted to indicate running script code in the HyperTalk-like AppleScript.
These cursors would be activated by an application when it was performing a lengthy operation. (Microsoft Windows would later adopt the Apple Lisa hourglass for the same concept.) Some versions of the Apple Installer used an animated "counting hand" cursor; other applications provided their own theme-appropriate custom cursors, such as a revolving Yin Yang symbol, Fetch's running dog, Retrospect's spinning tape, and Pro Tools' tapping fingers. Apple provided standard interfaces for animating cursors: originally the Cursor Utilities (SpinCursor, RotateCursor) and, in Mac OS 8 and later, the Appearance Manager (SetAnimatedThemeCursor).
In Mac OS X, Apple used the NeXTSTEP rainbow-colored spinning optical disk cursor. In OS X 10.0 and 10.1, the cursor had a two dimensional appearance, essentially unchanged from NeXT. Mac OS X 10.2 gave the cursor a glossy rounded "gumdrop" look in keeping with other OS X interface elements. The presence of preemptive multitasking under OS X changed the cursor's meaning. Rather than being an indication that an application was performing an action it expected to take a while, it meant that the system software had noticed that an application had stopped responding to events. This could indicate that the application was in an infinite loop, or just performing a lengthy operation and ignoring events.
Each application has an event queue that receives events from the operating system (for example key presses and mouse button clicks). If an application takes longer than 2 seconds to process the events in its event queue (regardless of the exact cause) the operating system displays the wait cursor whenever the cursor hovers over that application's windows.
This is meant to indicate that the application is temporarily unresponsive, a state from which the application may recover, however it may also indicate that the application has entered an unrecoverable state. This prevents the user from closing, resizing, or even minimizing the windows of that application. Users can choose to terminate an unresponsive application, by using "Force Quit" under the Apple menu, the keystroke command-option-escape, or the Force Quit command found by control-clicking (or right-clicking) the icon of an unresponsive application in the Dock.
While one application is unresponsive, typically other applications are usable in the meantime.
Possible causes include:
Instruments is an application that comes with the Mac OS X Developer Tools. Along with its other functions, it allows the user to monitor and sample applications that are either not responding or performing a lengthy operation. Each time an application does not respond and the spinning wait cursor is activated, Instruments can sample the process to determine which code is causing the application to stop responding. With this information, the developer can rewrite code to avoid the cursor being activated.