What are thread groups?



What are thread groups?..

Answer / Manjeet Kumar

Thread Groups in Java provide a way to organize multiple threads. They serve as a container for threads, allowing you to manage and control them collectively. Each thread belongs to exactly one ThreadGroup object and the group is the parent of all its child threads. You can set properties on a ThreadGroup such as its name or daemon status, which will be inherited by all threads within that group.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why null interfaces are used in Java?

2 Answers  


Explain about method local inner classes or local inner classes in java?

1 Answers  


What isan abstract class and when do you use it?

2 Answers   Genpact,


What is class level lock ?

1 Answers  


Can an abstract class be a final class?

1 Answers  


can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

1 Answers  


what is the reason behind non static method cannot be referenced from a static Context?

2 Answers  


What is rule of accessibility in java?

1 Answers  


Can you declare a private method as static?

1 Answers   TCS,


What is the difference between inner class and nested class?

1 Answers  


WHAT IS THE MEANING OF ALL TYPE OF BUZZWORDS?

4 Answers  


How do you clear a list in java?

1 Answers  


Categories