does your output look something like this?
Total running thread are 2
Thread name : main , Thread priority : 5 , Group name : main
Thread name : Thread-0 , Thread priority : 5 , Group name : main
I'll explain my output and hopefully you can understand what's going on with your output:
The first two lines are being printed out first because once these threads have been started, they'll run basically independent of the other threads (their data access may not be independent, but their runtimes are). They reached their print-out statements before the main thread could print out the "Thread name : "... stuff
The active count has dropped to 2 by the time the active thread number method was called because the first 2 threads have already stopped (reached the end of their run methods).
NEO was printed last because it's print statement happened to came after the thread info was printed.
Timing multi-threaded applications is a huge problem, and to be quite honest, i'm not too good at it. I have only basic knowledge of how multi-threading and parallel processing works (less than basic knowledge sometimes).