FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Integration
(Moderators: fry, REAS)
   ot: Windows XP and 50% cpu load
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: ot: Windows XP and 50% cpu load  (Read 2066 times)
amoeba

WWW
ot: Windows XP and 50% cpu load
« on: Apr 5th, 2005, 3:04pm »

(this is about Java, but since it also affects Processing I'll ask anyway...)
 
Does anyone know why I can't get a Java application to use more than 50% of the CPU power on Windows XP? I've found tips saying that using Thread.sleep() can cause a thread to run slowly, but I don't use it in my program.
 
This happens both when running the application from inside the JBuilder IDE and from the command line with only standard background processes running...
 

marius watz // amoeba
http://processing.unlekker.net/
fry


WWW
Re: ot: Windows XP and 50% cpu load
« Reply #1 on: Apr 5th, 2005, 4:15pm »

probably you have a dual processor system and you're running a single-threaded app, or rather, that almost all the computation is happening on one thread.
 
if you make another thread that does an equal amount of computation, you can use up the other cpu too.
 
Pages: 1 

« Previous topic | Next topic »