0

Sorry if this question seems to be foolish. I want to know how can i put my CPU to work that it's usage increase in arbitrary time. for example i want to turn it over 90 % usage. if Linux command exists or a simple program to do that it will be a pleasure.

muradin
  • 1,249
  • 2
  • 14
  • 34
  • 6
    Possible duplicate of [How can I produce high CPU load on a Linux server?](http://superuser.com/q/443406) – Xavi López Dec 10 '13 at 14:34
  • 1
    [How to create a CPU spike with a bash command](http://stackoverflow.com/q/2925606/851811) could also be useful. – Xavi López Dec 10 '13 at 14:39
  • that's right Xavi, because i'm not going to load on a server i couldn't find that, thank you anyway. – muradin Dec 10 '13 at 14:43

2 Answers2

2

Start running BOINC and use your spare capacity to process data for science. You can control how much of your CPU (and GPU) you assign to background processing and you never know - you may be the one to provide the trigger for a cure for cancer or muscular dystrophy.

Keeps you machine occupied doing something useful while you're taking your time punching keys...

Magoo
  • 77,302
  • 8
  • 62
  • 84
1

Try the following program, compiled in C++

int main() {
  for (;;)
    ;
}

It will sit in a tight loop and chew up available clock cycles.

Duncan Smith
  • 530
  • 2
  • 10