Skip to main content

java uses only 50% cpu

1 reply [Last post]
jamborta
Offline
Joined: 2008-07-15

hi,
I'm using netbeans 6.5.1 IDE with JDK 6 on win vista. the machine has dual core cpu. but java uses only 50% of the available resources. it uses both processors but the total usage never exceeds 50%. if someone could give me an suggestion why that is, i'd be grateful.

thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tarbo
Offline
Joined: 2006-12-18

Only one thread is doing all the work. If you want to spread the work over multiple processors, you need to run seperate threads or processes.

Take a look at [url]http://java.sun.com/docs/books/tutorial/essential/concurrency/[/url] for tips on how to do this.

Regards,
Jonathan

Edit: fix the URL

Message was edited by: tarbo