Computer hardware is a physical portion of a computer system and is generally tasked with functions specific to that type of equipment, while software is a set of instructions for hardware to follow in performing a specific task. However, the line between software and hardware is not always distinct.
CPU stands for central processing unit, the part of a computer's hardware that performs the instructions of programs and controls the operations of the system. Simply put, it is the brain of the computer.