• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to check Java Threads on Different Processors

 
Jaishankar VV
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic