frequent restarting of my pc

Jun 1, 2018
2
0
10
my pc keeps restarting, and mostly stops doing it after i remove the cmos battery and place it again, set its date and all. This problem is becoming really frequent, the last time this happened, a new kind of error popped up, showing that an unexpected error occured with i/o of a hardware component and suggested to check hard disk or cd drive; this time i tried resetting cmos data and worked again, and the pc is up now, i would like to know what's the core problem here and how to prevent it.

*SPECS*

OS Name Microsoft Windows 7 Professional
Version 6.1.7601 Service Pack 1 Build 7601
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name ADMIN-PC
System Manufacturer Acer
System Model Veriton Series
System Type x64-based PC
Processor Intel(R) Pentium(R) CPU G2030 @ 3.00GHz, 3000 Mhz, 2 Core(s), 2 Logical Processor(s)
BIOS Version/Date Acer P21-A1, 7/18/2013
SMBIOS Version 2.7
Windows Directory C:\Windows
System Directory C:\Windows\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "6.1.7601.17514"
User Name Admin-PC\Admin
Time Zone India Standard Time
Installed Physical Memory (RAM) 8.00 GB
Total Physical Memory 7.82 GB
Available Physical Memory 5.50 GB
Total Virtual Memory 15.6 GB
Available Virtual Memory 13.1 GB
 
Jun 1, 2018
2
0
10

OS Name Microsoft Windows 7 Professional
Version 6.1.7601 Service Pack 1 Build 7601
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name ADMIN-PC
System Manufacturer Acer
System Model Veriton Series
System Type x64-based PC
Processor Intel(R) Pentium(R) CPU G2030 @ 3.00GHz, 3000 Mhz, 2 Core(s), 2 Logical Processor(s)
BIOS Version/Date Acer P21-A1, 7/18/2013
SMBIOS Version 2.7
Windows Directory C:\Windows
System Directory C:\Windows\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "6.1.7601.17514"
User Name Admin-PC\Admin
Time Zone India Standard Time
Installed Physical Memory (RAM) 8.00 GB
Total Physical Memory 7.82 GB
Available Physical Memory 5.50 GB
Total Virtual Memory 15.6 GB
Available Virtual Memory 13.1 GB

*Are these specs enough