It was probably a momentary power outage which will cause a computer to re-start.

NOTE: if it went off and came back on after a short time as it was (Did not re-start or shut down) then it is probably a hardware problem, which will take more diagnostic investigation to identify, however giving all the fans and grilles a good clean will probably help. (Most case fans have filters which can get blocked)

Hope this helps

Bill
_________________________
English Riviera:
Live entertainment, Real Ale, Great Scenery, Great Beaches, why would anyone want to live anywhere else (I�m definitely staying put).