Home arrow static arrow Java Programming [Archive] - java thread and the process
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - java thread and the process
This topic has 3 replies on 1 page.

Posts:37
Registered: 7/31/04
java thread and the process  
Aug 9, 2004 1:17 PM



 

when i create thread by using java language
why i not see it in the prosess list on solaris by use PS command.. and how i can see how much it usage CPU
 

Posts:225
Registered: 8/6/04
Re: java thread and the process  
Aug 9, 2004 1:46 PM (reply 1 of 3)



 
Threads are not processes in some (most?) OSes.
 

Posts:2,206
Registered: 8/15/02
Re: java thread and the process  
Aug 9, 2004 1:47 PM (reply 2 of 3)



 
Decause of the way threads are implemented - each thread does not create a new JVM, thus you only have one entry in the process table. You can not easily determine the CPU usage os an individual thread I don't think.
 

Posts:458
Registered: 7/1/03
Re: java thread and the process  
Aug 9, 2004 1:51 PM (reply 3 of 3)



 
Processes CONTAIN threads. So therefore you wont see it on a task list. If you want to know if it got created properly there are methods in the thread class to do that.
 
This topic has 3 replies on 1 page.