N-iX interview question

How does the CPU handles multiple tasks