 |
Author |
Topic: ot: Windows XP and 50% cpu load (Read 2066 times) |
|
amoeba
|
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
|
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.
|
|
|
|
|