Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What is Thread Group? Why it’s advised not to use it?

Pragya Keshap answered on December 15, 2022 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • thread group c++
  • What is the purpose of Thread Groups in Java?
  • What is ThreadGroup?

  • What is Thread Group? Why it’s advised not to use it?

    0

     Thread group is a collection of threads or sub thread groups

    that are responsible for doing something similar and Java provides a convenient way to group multiple

    threads in a single object .The advantage of using thread group is that we can perform common operation on the whole

    group so in other words programmer can group the threads in thread group based on their functions to

    be performed.

    But ThreadGroup API is weak and it doesn’t have any functionality that is not provided by Thread.

    Two of the major feature it had are to get the list of active threads in a thread group

    and to set the uncaught exception handler for the thread.

    So ThreadGroup is obsolete and hence not advised to use anymore. 

    Popularity 1/10 Helpfulness 1/10 Language java
    Source: Grepper
    Tags: java
    Link to this answer
    Share Copy Link
    Contributed on Feb 22 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    0
    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on Dec 15 2022
    Deepika Sahu
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.