The control unit is a circuit inside of a computer's central processing unit (CPU). It controls the activity of all other units in the computer system, giving them directions. Its main job is to get the code from the program, decode it and operate the arithmetic logic unit and other units to run the code. The control unit manages all the computer resources. It directs the flow of data between the CPU and the other devices.