A system can freeze or hang rather than crash completely if some software process is stuck. Follow these steps to recover from a hung system.
Determine whether the system is running a window environment and follow these suggestions. If these suggestions don't solve the problem, go to step 2.
Make sure the pointer is in the window where you are typing the commands.
Press Control-q in case the user accidentally pressed Control-s, which freezes the screen. Control-s freezes only the window, not the entire screen. If a window is frozen, try using another window.
If possible, log in remotely from another system on the network. Use the pgrep command to look for the hung process. If it looks like the window system is hung, identify the process and kill it.
Log in remotely and attempt to identify and kill the process that is hanging the system.
Log in remotely, become superuser or assume an equivalent role and reboot the system.
If the system still does not respond, force a crash dump and reboot. For information on forcing a crash dump and booting, see Forcing a Crash Dump and Reboot of the System in System Administration Guide: Basic Administration.