• Post Reply Bookmark Topic Watch Topic
  • New Topic

process ID  RSS feed

 
eswar kumar
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If 4 threads are running how to find ProcessID?
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by eswar kumar:
If 4 threads are running how to find ProcessID?

Process and thread IDs are considered to be platform-specific concepts, so Java does not give you access to them.
If you are working on only specific platforms, you might be able to write native code to find process and/or thread IDs, and access this native code with JNI.
Threads do have names in Java. However, the thread name is not necessarily connected to any attribute of a native thread.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!