As you describe it, you have other issues.
I would likely do a test to see if major hardware issues can be reported by the Hardware Test software.
You can likely find that as a diskimage, by searching online for AHT 2.5.2. Burn the image to a CD-r.
Or, you should still open the case, and take a look around for visible corrosion, make sure that fans are relatively clean, and try redoing the heat sink compound. If you have no experience with that kind of work, you can follow steps to get inside here.
OR, if you really don't want to go inside, then reseating the RAM memory sticks is a simple step that you can try.
The freezing/lockups might also mean that your hard drive may be getting near to failure.
You would need to boot to an external drive, or to an OS X installer DVD to do a good test of your hard drive with Disk Utility, or you can boot into single-user mode, and run an fsck -fy (Restart, holding Command+s, wait for the scrolling text, then type the command /sbin/fsck -fy
Press enter, and the command runs the test of the drive directory.
ATA hard drives are getting harder and harder to find now, but there's also adapters to allow you to transplant a solid state drive, like an M2 SSD card.
I would likely do a test to see if major hardware issues can be reported by the Hardware Test software.
You can likely find that as a diskimage, by searching online for AHT 2.5.2. Burn the image to a CD-r.
Or, you should still open the case, and take a look around for visible corrosion, make sure that fans are relatively clean, and try redoing the heat sink compound. If you have no experience with that kind of work, you can follow steps to get inside here.
OR, if you really don't want to go inside, then reseating the RAM memory sticks is a simple step that you can try.
The freezing/lockups might also mean that your hard drive may be getting near to failure.
You would need to boot to an external drive, or to an OS X installer DVD to do a good test of your hard drive with Disk Utility, or you can boot into single-user mode, and run an fsck -fy (Restart, holding Command+s, wait for the scrolling text, then type the command /sbin/fsck -fy
Press enter, and the command runs the test of the drive directory.
ATA hard drives are getting harder and harder to find now, but there's also adapters to allow you to transplant a solid state drive, like an M2 SSD card.