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

后端 未结 5 1793
离开以前
离开以前 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 17:46

    Don't use ThreadGroup for new code. Use the Executor stuff in java.util.concurrent instead.

提交回复
热议问题