Write code in your favorite language and let Windows Task Manager represent a sine wave in CPU Usage History.
This is a technical interview quiz from Microsoft China. I think it's a good question. Especially it's worth knowing how candidate understand and figure out the solution.
Edit: It's a good point if may involve multi-core(cpu) cases.