Re: how many threads when jvm starts



In article
<5d691a53-a00f-422e-95bf-3c3e6fdf130b@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
BILL <bill_j_chen@xxxxxxxxx> wrote:

Newbie question...

when we start a simpel java program (no multiple thread), do we have a
way to know how many threads the jvm will create... in other words,
what default threads does the jvm have? do we have a way to get some
infomation of those threads progammatically?

Top shows the total thread count: <http://www.unixtop.org/>

The NetBeans IDE profiler gives detailed information on each thread.

On Mac OS, there's a nice graphical tool in /Developer called Thread
Viewer.

Thread.currentThread() gives you a reference to the current thread:

<http://java.sun.com/javase/6/docs/api/java/lang/Thread.html>

What are you trying to accomplish?

--
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews
.



Relevant Pages

  • Re: how many threads when jvm starts
    ... when we start a simpel java program (no multiple thread), ... way to know how many threads the jvm will create... ... You can abort java.exe by hitting ctrl-C. ...
    (comp.lang.java.programmer)
  • how many threads when jvm starts
    ... Newbie question... ... when we start a simpel java program (no multiple thread), ... way to know how many threads the jvm will create... ...
    (comp.lang.java.programmer)
  • Re: how many threads when jvm starts
    ... BILL wrote: ... when we start a simpel java program (no multiple thread), ... way to know how many threads the jvm will create... ...
    (comp.lang.java.programmer)