#include <stdio.h>
#include <stdlib.h>
int
main (void) {
volatile unsigned x = 0, y = 1;
while (x++ || y++) {
;/*Nothing to doing*/
}
return 0;
}
Program in c that will make the CPU run at 100%

#include <stdio.h>
#include <stdlib.h>
int
main (void) {
volatile unsigned x = 0, y = 1;
while (x++ || y++) {
;/*Nothing to doing*/
}
return 0;
}