Rebooting is one of the best solution for solving your computer restarting problem. this can be done by few simple steps start button on task bar> control panel > uninstall a program. Uninstall all the unnecessary software and follow the instruction given on the screen and after that reboot your machine.
This is the good tactics of rebooting your system.