If your computer keeps rebooting by itself, it may be overheating. That could be due to a failure of the CPU fan, which is not hard to replace. You may want to download a program like Everest computer diagnostics to check CPU temperature, and perhaps it will report fan speed.