What is the benefit of ThreadGroup in java over creating separate threads?

后端 未结 5 1787
离开以前
离开以前 2020-12-14 17:32

Many methods like stop(), resume(), suspend() etc are deprecated.

So is it useful to create threads using ThreadGroup

5条回答
  •  时光取名叫无心
    2020-12-14 18:00

    Great answer for @skaffman. I want to add one more advantage:

    Thread groups helps manipulating all the threads which are defined in this at once.

提交回复
热议问题