Below instruction will start CPU stress with maximum of 100%,
while(1);
Below instructions will start CPU stress with near to 0%.
while(1)
sleep(1);
Is there any way to control this? I mean what if i want to start CPU stress of >100% and what if want to start CPU stress with particular number?
Can any one help in programming that? I am looking for C/C++/Python solution on Linux...