Index Page : Link
Donate : Link
Medium Link : Link
Applications : Link
1. ThreadGroup tg = new ThreadGroup(String name)
- Create a new Thread Group with specified group name.
- The parent of this new group is the thread group of currently executing thread.
package com.example.thread;
public class Test {
public static void main(String... args) {
ThreadGroup tg1 = new ThreadGroup("Group1");
System.out.println(tg1.getName()); // Group1
System.out.println(tg1.getParent().getName()); // main
}
}
2. ThreadGroup tg1 = new ThreadGroup(ThreadGroup tg, String name)
- Creates a new Thread Group with the specified group name.
- The parent of this new thread group specified parent group.
package com.example.thread;
public class Test {
public static void main(String... args) {
ThreadGroup tg1 = new ThreadGroup("Group1");
System.out.println(tg1.getName()); // Group1
System.out.println(tg1.getParent().getName()); // main
ThreadGroup tg2 = new ThreadGroup(tg1, "Group2");
System.out.println(tg2.getName()); // Group2
System.out.println(tg2.getParent().getName()); // Group1
}
}



Precisely what I was looking for, thanks for posting.
LikeLiked by 1 person
Thank you Olevia Bunson
Please check new blog https://bit.ly/31989Yt
You’ll find best Android Apps on new blog
Download | Comment | Share
Buy Me A Coffee if you want, Find “Donate” link in Menu
LikeLike
What i do not realize is actually how you are not really much more well-liked than you may be now. You’re so intelligent. You realize thus significantly relating to this subject, made me personally consider it from numerous varied angles. Its like men and women aren’t fascinated unless it’s one thing to do with Lady gaga! Your own stuffs outstanding. Always maintain it up!
LikeLiked by 1 person
Thank you Ira Odome
Please check new blog https://bit.ly/31989Yt
You’ll find best Android Apps on new blog
Download | Comment | Share
Buy Me A Coffee if you want, Find “Donate” link in Menu
LikeLike