Skip to main content

Concurrency-Parallel Processing in Java

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2011-12-01


Lets say you have an intel's 2-core processor in your machine. In Java how you can test to check if your program is actually utilizing both cores? I have read about Java Threads but that will work even if a machine has a single execution core.

I would appreciate a plain clear and straight answer. A simple example of printing "Hello Java" using all cores of your CPU would be ideal with a Java statement that proves that the program actually used all cores to print "Hello Java".