It is XP – I downloaded and ran the Spybot program that someone recommended. It found loads of 'malware', but to no obvious effect.
Download and run Malware Bytes…
It's in another league to Spybot!
Mine can be 0% or 4% idle and 100% when something is eh-oh! or dumprep which is annoying too.
Yeah likewise. Generally caused by all sorts of crap you don't want running in the background or Malware etc.
Any possibility you could take some screenshots of your task manager "applications" "Processes" and "Performance" tabs whilst it is at both idle, and also 100% usage…
Also, what processor and how much RAM has your machine got? Might be that it's just particularly slow and even the most mundane of tasks are maxing out your processor and RAM!