Even OS X will occasionally lockup.
If the computer has stopped responding, try these steps, in order, until the computer responds:
- Force Quit (Option-Command-Escape)
- Restart (Control-Command-Power)
- Force Shut Down (press the power button for 10 seconds)
(from various Apple.com support pages: 1, 2)