Is there any blue screen appear before restsrt? There can be two reason for this.
1. Error on RAM card. (Check you RAM card with another PC or replace RAM & Check.
2. Windows file damage (Try to Repair windows or Reinstall)
This could be because of overheat the processor. Check the cooling fan too. If you can check the CPU temperature through BIOS you can ensure about CPU temperature.