You can troubleshoot and fix a MacBook that is overheating in 8 ways, so it can cool down, and you can continue using it.
You can overclock your PC's CPU by increasing the CPU multiplier and voltage, but you need to make sure the computer can handle it.