Re: how many threads when jvm starts



On Wed, 30 Jul 2008 19:53:29 -0700 (PDT), BILL <bill_j_chen@xxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

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?

You can abort java.exe by hitting ctrl-C. You can abort and get a dump
of what was going on at the time with the threads with
Ctrl+Shift+Break. For anything fancier, you will probably need a
debugger.

I vaguely recall some simple tool that showed me what was going on
with threads. There at least half a dozen of them even in a "single
thread" app.

Check out the Java.exe command parms to see if there is something.

See http://mindprod.com/jgloss/javaexe.html


--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



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... ... home dot woh dot rr dot com slash jbmatthews ...
    (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)