what is the cpu and what is its function?
The central processing unit (CPU) is the computer component that's responsible for interpreting and executing most of the commands from the computer's other hardware and software. All sorts of devices use a CPU, including desktop, laptop, and tablet computers, smartphones...even your flat-screen television set.
Despite that, the basic function of the CPU has remained the same consisting of three steps; fetch, decode, and execute. Fetch Just as you may expect, fetching involves receiving an instruction.