2
Doing work takes energy! When the CPU is working hard to follow your instructions, it uses electricity and creates heat. It's like how you sweat when you run a race.
If your code is inefficient (like an infinite loop), the CPU has to work much harder, and things get very hot. Good code stays cool!
Log in to add a comment.