If I have an empty while loop in my code such as:
while(true);
It will drive the processor usage up to about 25%. However if I do the followin
The sleep in the second one is kinda like a 'yield' to the OS's process scheduler.