how to know imac crash reason

Use Mac OS X's Console (found in /Applications/Utilities) to monitor your system logs by filtering their contents.
Check first system.log and console.log. Logs display their information in reverse chronological order, scroll down to reach content around 11:00am.