File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Threads and Synchronization and the fly likes How to check Java Threads on Different Processors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "How to check Java Threads on Different Processors" Watch "How to check Java Threads on Different Processors" New topic
Author

How to check Java Threads on Different Processors

Jaishankar VV
Greenhorn

Joined: May 13, 2002
Posts: 6
If I write a multi threaded java program. Say if the number of processors are 4, I also ensure that the number of thread is not more than 4.

1) Can any one let me know what are the steps to ensure that this program will utilize all 4 CPU's.
2) Do we need to set jvm option as -native
3) OS command on unix to find out whether program uses all 4 CPU's
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to check Java Threads on Different Processors
 
Similar Threads
JVM Multiple CPU Usage on Redhat
multiprocessor multithreading
Need help understanding results from running 2 threads
Java and Multi Processor Machines
Java's Performance