Imported from: renren.
It is said that this is a problem from interview of Microsoft. Write a program, which makes the CPU usage curve in Windows Task Manager shows a Sin function.
![Sine function 1](http://fm531.img.xiaonei.com/pic001/20080602/23/14/large_10019p67.jpg)
![Sine function 2](http://fm541.img.xiaonei.com/pic001/20080602/23/14/large_9935o67.jpg)
The program below is written in java:
public class sincpu {
private static final int cycle=1024,tick = 256 …