The control unit is a circuit inside of the Central Processing Unit (CPU). It coordinates the activity of all other units in the computer system, giving them directions. Its main function is to fetch the code from the program, decode it and operate the arithmetic logic unit and other units to perform the task. The CU manages all the computer resources. It directs the flow of data between the CPU and the other devices.