Hi, 

As I see from your sample there is only one thread created and started.
So for me isn't clear how you are going to find your thread by name in this 
list if you have not set any name for it.
I suppose "thread-0" is single "ServePackets" thread.

Alex.



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of abdelkafi atef
Sent: Friday, April 11, 2008 4:15 PM
To: tptp-tracing-profiling-tools-dev@eclipse.org
Subject: [tptp-tracing-profiling-tools-dev] Urgent TPTP question,suggestion 
please!!




 
> Hi ,
> I profiled the following source code portion:
> 
> import java.util.concurrent.BlockingQueue;
> import java.util.concurrent.LinkedBlockingQueue;
>  
>       ...Class packet as a THREAD...
> 
> public class ServePackets extends Thread {
>     
> private Packet pkt;
>     private BlockingQueue WaitingPackets;
>      public ServePackets()
>       {
>               WaitingPackets = new LinkedBlockingQueue();
>           
>     }
>       public void ReceiveWaitingPackets(Packet p)
>     {
>           try {
>                       WaitingPackets.put(p);
>               } catch (InterruptedException e) {
>                       // TODO Auto-generated catch block
>                       e.printStackTrace();
>               }
>      }
>      public void run()
>     {         
>         try{
>               while( !lbq.isEmpty())
>               {
>                         pkt= WaitingPackets.take();
>               }
>                ....Serve packets...
>         
>               } catch (InterruptedException e) {
>                       e.printStackTrace();
>               }
> 
>       }
>       public static void main(String[] args) {
>               // TODO Auto-generated method stub
>              ServePackets Sp= new ServePackets();
>               Sp.start();
>          }
>   
>  }
> 
> Indeed I was really surprised after doing thread profiling by your TPTP 
> plugin.
> I found the following threads:
> main, destroy java VM, thread-0, reference handler,finalizer and signal 
> dispatcher.
> It's interesting in some kind of applications but in mine not.
> I want as I said previously measure waiting packets queue length as a 
> function of time, I didn't find neither servepackets thread nor  waiting 
> packets thread in TPTP thread profiling results.
> Do you have any suggestion using TPTP or even other java plugin or API? 
> please i really need your help it's a really critical work that i must do.
> Thanks.
> 

_________________________________________________________________
Lancez des recherches en toute sécurité depuis n'importe quelle page Web. 
Téléchargez GRATUITEMENT Windows Live Toolbar aujourd'hui !
http://toolbar.live.com_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev

--------------------------------------------------------------------
Closed Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park, 
17 Krylatskaya Str., Bldg 4, Moscow 121614, 
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev

Reply via email to