I have been having problems with random restarts that do not notify me and they usually occur when i am gaming and a few times when using the computer for web searching. I downloaded OCCT which was measuring the temperature, as i was thinking that it was due to overheating and after several minutes it stopped as the CPU temperature had shot way above the max temperature, it was 255 degrees with the max being 85. Is this the cause of random restarts? Whats the solution?

