Home > Back-end >  Consult BMDThread how to control the maximum number of threads running at the same time?
Consult BMDThread how to control the maximum number of threads running at the same time?

Time:10-13

Could you tell me this control how to control the number of threads running at the same time? Similar to the effect of thread pool,,

Is to create a number of threads, and at the same time open x, only every time,

CodePudding user response:

The maximum number of threads, the true is studied

CodePudding user response:

Add, and might say not clear

Set the maximum thread such as 10

If have 100 thread for processing
Per run, at most, only 10, when there is a thread running over in 10, the automatic start a thread, running at the same time the total number of not more than 10
  • Related