For various reason you computer can restart, first of all check your RAM,because sometimes rams are properly not connected with motherboard then your computer restart several times. Open your ram from your motherboard and clean it and re-setup again.
Hard disk failure is another issue to restart a PC. So you can run hard disk diagnosis tools and check your hard disk health.
Few days ago i faced same problem for display driver issue. So dont forget to check them.