can be many things ..... causing it to restart. you can

  1. check the log tables to see what caused the restarts
  2. check to see if the processor fun is fixed well.
  3. listen to the beep codes when it starts how many beeps it makes.
  4. can be corrupt drivers
  5. can be a loose Hardisk
  6. can be a loose RAM
  7. ETC.....vitu nyingi sana!!