Thread count
1 posts in topic
Flat View  Flat View

Posted By:   Venkat_Bhimanapalli
Posted On:   Monday, September 9, 2002 01:25 PM

I am running a shell script which contains a java program. In that java program
can i know count of processes that are running. i.e if i run the shell script in 2 diffrent
command prompts i should get 2. I used Thread.activeCount() it is not giving what i expected , I am using Websphere 3.5,Db2.
Thanks in advance


Re: Thread count

Posted By:   Thomas_Hackel  
Posted On:   Monday, September 9, 2002 11:11 PM

you can only get the threadcount in ONE VM process! Starting the shellscript (aka the java prg) two times is resulting in TWO VM processes! you have to write a process to process communication to check if also other processes with your threads are running...
About | Sitemap | Contact