Provide a detailed explanation of how a computer's CPU manages processes and resources. Your response should contain at least 500 words and include the following keywords: processor, multitasking, thread, kernel, scheduling, and context switch.
user