Skip to content

[Feature] The number of threads in the thread pool decreases in real time #1208

@magestacks

Description

@magestacks

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

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions