If a message pops up saying "RPC xxxxx something" than it\'s probably the virus/worm, else if it just reboot by itself with no warning, than it\'s likely to be the powersupply running out of juice. Do you have lots of cards and fans and gadgets inside ur PC? If you do, this reason is very likely.
Make sure you buy at least a 400W PSU.