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???

Recommended Answers

All 3 Replies

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.