What are the main functions of the CPU? How is the ALU related to the CPU? What are its main functions? Explain what the CPU should do when an interrupt occurs. Include in your answer the method the CPU uses to detect an interrupt, how it is handled, and what happens when the interrupt has been serviced.