Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-19-2008, 09:50 PM
Member
 
Join Date: Jan 2008
Posts: 2
Balajionnet is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-19-2008, 10:09 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-20-2008, 07:29 AM
Member
 
Join Date: Jan 2008
Posts: 2
Balajionnet is on a distinguished road
Thanx. But Still....
Thanx for ur reply. But is there any other way than this. What about giving load to CPU?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 01-20-2008, 01:10 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
I dont know any other way. And as far as i understand your question, this is giving load to CPU.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 10:09 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org