I suppose you can consider yourself fortunate that there is more than an even chance of this being a software program.
First, though, how long have you had the machine and when did the problem start?
In order to check the hardware, go to BIOS and 'disable' multi-threading and reduce the number of CPU cores that are being used.
Now restart the machine and see if the problem persists.