my dog learned polymorphism*
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


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
 
GeeCON Prague 2014
 
subject: How to check Java Threads on Different Processors