Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
378 views
in Technique[技术] by (71.8m points)

multithreading - what is the plan for Threadgroup in python

I was taking a look at the threading library for python3 and was wondering what the group parameter was supposed to do. i know its just a placeholder. but what would it do where it implemented.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I believe that it relates to the Java ThreadGroup class concept, as the python multithreading module design was inspired by the Java thread-related classes. The Java ThreadGroup class basically represents a set of threads, allowing a thread to access information about its own thread group, but not any other thread groups.

https://docs.oracle.com/javase/7/docs/api/java/lang/ThreadGroup.html


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...