CPU or RAM?

Comparing Computer Components.

A little bit about CPU...

A CPU (central processing unit) Is inside the motherboard, it carries out instructions of the computer program. A computer can have more than one CPU; more modern computers normally have more than one. There are two main components to a CPU, an arithmetic logic unit; performs arithmetic and logical operations and the control unit; which extracts instructions from memory and decodes and executes them.
How a CPU Works

A little bit about a RAM...

A RAM (random access memory) is a long strip inside the motherboard and every time you open a program it gets loaded from the hard drive to the RAM. There are two types of RAM them being a DRAM (Dynamic Random Access Memory); which is more common and needs to be refreshed thousands of times while using and a SRAM (Static Random Access Memory); which doesn't need to be refreshed and is much faster in speed.
What is Random Access Memory (RAM)

Comparing the two components of the CPU

- Arithmetic logic unit (ALU); performs arithmetic and logical operations.

- Control unit (CU), which fetches instructions from memory and decodes and executes them, calling on the services of the ALU when necessary.

Comparing the two components of the RAM

- DRAM (Dynamic Random Access Memory); which is more common and needs to be refreshed thousands of times

-SRAM (Static Random Access Memory); which doesn't need to be refreshed and is much faster in speed.