Results 1 to 4 of 4

Thread: Cpu Hog

  1. #1
    Balajionnet is offline Member
    Join Date
    Jan 2008
    Posts
    2
    Rep Power
    0

    Lightbulb Cpu Hog

    Hi friends.
    I want help regarding CPU HOG. I want to reduce my CPU processing power. Either by reducing CPU frequency or by giving Load to CPU. Is there any way to implement this? I need JAVA code.

    Help me to find.


    ThanX

  2. #2
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    10

    Default

    Why do you need that? It looks very unusual!

    You can create an application with a thread. Inside your thread you will have an infinite loop but inside your infinite loop, you will sleep for a predefined time at every X step. If you play with those two variables (predefined sleep time and X), you can reduce your CPU power to whatever value you want.

  3. #3
    Balajionnet is offline Member
    Join Date
    Jan 2008
    Posts
    2
    Rep Power
    0

    Question Thanx. But Still....

    Thanx for ur reply. But is there any other way than this. What about giving load to CPU?

  4. #4
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    10

    Default

    I dont know any other way. And as far as i understand your question, this is giving load to CPU.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •