It aint anything dangerous, I think all apps that have a while loop with no sleep func in it use the cpu at 100%. If you add a sleep of, say 1 millisecond, the cpu usage should drop. Not sure though...
something like this on windows:
while(TRUE) { blah blah... your code 'n stuff Sleep(1.0); }