97% is pretty much for such a program (since it will be in the first level CPU-cache with just a few assembler opcodes). Try to draw the square root of 2 instead...
–
NilsSep 27 '12 at 20:49

still dont understand cpu should be at full usage because it is always doing arithmetic operations... maybe because is a pipe-lined superscalar processor?
–
ostriSep 28 '12 at 13:09

an increment by one is a pretty boring operation for a CPU (even before pipelines were build into CPUs). So there will be time left to look for more interesting jobs. And yes - pipelining has to do something with it.
–
NilsSep 30 '12 at 21:13

1 Answer
1

there is a concept of scheduling, further it also depends on number of core.On my system this program can't cause more than 13% cpu usage(until you don't write multi-core manipulation program).You can try some benchmarking tool and can see your top reporting upto 100% cpu usage.