This problem is not so common, but many people have encountered this before. What make the computer restart itself?
We can check against the following to locate the reason.
Computer need a stable power supply. It’s always better to only plug the computer into socket. Do not share the socket with other applicances.
It’s not only the socket on the wall, but also any adaptors used. You may need to check other related applicances, like printer.
One more point is to keep them clean and clear from dust.
You can get the latest version of anti-virus and perform a check.
In Windows, there are many system files to support the operating system. If they are corrupted or lost, the system will become unstable.
You can use the Windows install disk to perform repair or re-install.