You might have downloaded something from a malicious website which has installed a bitcoin miner. If your computer is idling i.e. it's not doing anything and your getting 100% cpu usage, then it's a good bet someone is using your computer to mine bitcoins. These can be a bit tricky to remove. Use malwarebytes free to see if that can remove it. If not, look for solutions online on how to remove them.