• Post Reply Bookmark Topic Watch Topic
  • New Topic

listing all system threads  RSS feed

 
Juan Tanamera
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the task manager I can see 8 threads running for java.exe (started with netbeans)

Using
Thread.currentThread().getThreadGroup().list(); //main group
Thread.currentThread().getThreadGroup().getParent().list(); //system group

I can see only 4, with no further parents.

java.lang.ThreadGroup[name=system,maxpri=10]
Thread[Reference Handler,10,system]
Thread[Finalizer,8,system]
Thread[Signal Dispatcher,9,system]
java.lang.ThreadGroup[name=main,maxpri=10]
Thread[main,5,main]

What are the other four?

[ November 16, 2006: Message edited by: Juan Tanamera ]
[ November 21, 2006: Message edited by: Juan Tanamera ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!