954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

which threads are autometically createdd as we start your java prog

Can some one help me in find out which other threads are created as we start our main program, like "main" thread will be followed by "Finalizer" and then followed by "Reference Hanndler" etc. It may be System threads.

But my questions is how i came to know and starting my application that other System threads are also running with my application , is any command for that???

sarkar.manab
Newbie Poster
4 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

Have you looked at the Thread class and the System class? One of them might have some tools you could use.

NormR1
Posting Expert
Moderator
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
 

Thread.getAllStackTraces() returns a map of stack traces for all live threads. You could ignore the stack traces and just look at the keys in that map for a list of all live threads.

JamesCherrill
Posting Genius
Moderator
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073
 

I think u r right.

sarkar.manab
Newbie Poster
4 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: