You may want to check to see if your power supply is functioning properly. I know my PC was restarting all the time when my PSU started dying.