-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] The number of threads in the thread pool decreases in real time #1208
Comments
I will try to complete it |
…ther the maximum number of threads in the thread pool is exceeded(opengoofy#1208)
…ther the maximum number of threads in the thread pool is exceeded(opengoofy#1208)
…gistering MaximumActiveThreadCountChecker and support regular check of the thread pool registered with the plugin (opengoofy#1208)
…ther the maximum number of threads in the thread pool is exceeded(opengoofy#1208)
…gistering MaximumActiveThreadCountChecker and support regular check of the thread pool registered with the plugin (opengoofy#1208)
…ther the maximum number of threads in the thread pool is exceeded(opengoofy#1208)
I have a brand new idea, this plugin may be directly used to allow users to quickly and actively destroy worker threads, not limited to destroying worker threads that exceed the maximum number of threads (in fact, this is also an active destruction scenario).
If this idea is feasible, then the subsequent PR will need to be further adjusted. |
The destruction of worker threads should be controlled by |
Demand advice
Please answer these questions before submitting them. Thank you.
Is your function request related to the problem?
NO
Describe the function you want
The number of threads in the thread pool decreases in real time.
Suppose the core and maximum number of threads is 3, n tasks have been run, and the current thread of the thread pool is now 3. And now I've adjusted the number of threads to 1, so when I run the task again, after the task has run, I'll start checking the current thread and the maximum maximum thread, and if it's greater than that, I'll interrupt myself.
I want to do this through the current thread pool plug-in.
@Createsequence
The text was updated successfully, but these errors were encountered: