Re: how many threads when jvm starts
- From: "John B. Matthews" <nospam@xxxxxxxxxx>
- Date: Thu, 31 Jul 2008 00:37:32 -0400
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
.
- References:
- how many threads when jvm starts
- From: BILL
- how many threads when jvm starts
- Prev by Date: Re: Compile Date
- Next by Date: I'm annoyed
- Previous by thread: Re: how many threads when jvm starts
- Next by thread: I'm annoyed
- Index(es):
Relevant Pages
|