I don't know what the reason for restart. But basically it will be
when computer have..
1. Software problem.
2. Hardware problem.
3. Cooling fan problem.
4. Computer virus.
5. problem of operating system.
For solved this kind of problem you should give windows setup.