Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-14-2008, 05:26 PM
Member
 
Join Date: Sep 2008
Posts: 43
Rep Power: 0
2potatocakes is on a distinguished road
Question Is it possible to prioritise CPU power in java?
Hi guys,

I'm writing a program that will automatically run when a screen saver is loaded. Problem is, I'm trying to make it as CPU intensive as I can, because its a program that just crams out calculations.

I'm wondering if any knows anywhere I can find information about how to draw out as much CPU power as possible. Or even if there's a way of temporarily pausing all unnecessary programs while mine runs or something along those lines? I don't want to have to do it manually everytime, I need my program to implement it itself.

Let me know if you can help! Thanks!!

Lucas
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 10-14-2008, 05:36 PM
ojn ojn is offline
Member
 
Join Date: Sep 2008
Location: Stockholm, Sweden
Posts: 63
Rep Power: 0
ojn is on a distinguished road
Send a message via MSN to ojn
Default
One thread is enough! [SOLVED] Is it possible to prioritise CPU power in java?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 10-14-2008, 05:53 PM
CJSLMAN's Avatar
Moderator
 
Join Date: Oct 2008
Location: Mexico
Posts: 1,160
Rep Power: 3
CJSLMAN is on a distinguished road
Default Don't cross post
Don't cross post your questions on different forums... it just angers people and you don't get the support you were looking for. Select a forum and stick with it. If it's the wrong forum, people will let you know.
CJSL
__________________
Chris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 10-14-2008, 06:14 PM
Member
 
Join Date: Sep 2008
Posts: 43
Rep Power: 0
2potatocakes is on a distinguished road
Default
There's worse things in the world to get angry about guys..

My apologies for putting it in both the beginners and advanced section, I'm new here and just thought it'd reach a larger audience as I didn't think there'd be many people that could help with me with this one. Do either of you actually have any suggestions about the question I posted though?

If not, take a chill pill and ignore it. But to keep yas happy, I've removed the one from the advanced section, so that no more tears will be shed..

peace!
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 10-14-2008, 06:23 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
Default
Sounds like an OS specific problem. Java is supposed to be independent of OS, so you'll need some JNI code to get at the OS stuff.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 10-14-2008, 06:35 PM
CJSLMAN's Avatar
Moderator
 
Join Date: Oct 2008
Location: Mexico
Posts: 1,160
Rep Power: 3
CJSLMAN is on a distinguished road
Default
I agree with Norm... this is OS & HW specific. The only thing that I could find was the following:
http://cs.gmu.edu/~hfoxwell/Chap6notes.pdf
Don't know if it will help.
CJSL

PS: I'm not angry... just letting you know what is expected when using the forum. No need for a chill pill
__________________
Chris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 10-14-2008, 06:38 PM
ojn ojn is offline
Member
 
Join Date: Sep 2008
Location: Stockholm, Sweden
Posts: 63
Rep Power: 0
ojn is on a distinguished road
Send a message via MSN to ojn
Default
Quote:
My apologies for putting it in both the beginners and advanced section, I'm new here and just thought it'd reach a larger audience
The only thing this does is cause frustration, because people will spend a lot of time trying to help you, only to find out someone beat them to it somewhere else. Therefor wasting their time for nothing.

That - and at the same time being ignorant - will make it impossible for you to get assistance whatsoever in the future.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is it possible to prioritise CPU power in java? 2potatocakes Advanced Java 0 10-14-2008 04:56 PM
Power of Java jeffranc Database 5 09-05-2008 08:14 AM
Power*MatchMaker 0.9.1 JavaBean Java Announcements 0 11-17-2007 03:05 PM
Power*Architect 0.9.7 levent Java Announcements 0 07-31-2007 07:52 PM
Power*Architect 0.9.6 JavaBean Java Announcements 0 07-07-2007 03:25 PM


All times are GMT +2. The time now is 12:18 AM.



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