Home > Net >  Increase wireless System. The Timer thread
Increase wireless System. The Timer thread

Time:09-27

After using the timer thread unlimited increase c # how to solve

CodePudding user response:

To have a look at the difference between the three timer
https://blog.csdn.net/hanjun0612/article/details/81357492


CodePudding user response:

reference 1st floor is nu month god reply:
to have a look at the difference between the three timer
https://blog.csdn.net/hanjun0612/article/details/81357492

Sustained growth within the resources to monitor the number of threads

CodePudding user response:

refer to the second floor weixin_39516696 response:
Quote: refer to 1st floor is nu month god reply:
to have a look at the difference between the three timer
https://blog.csdn.net/hanjun0612/article/details/81357492

Sustained growth within the resource monitor threads

Because have not finished the first task, so behind the task again,
Open a new thread, naturally
You see I will give you post first, I think we need not to discuss the problem,

CodePudding user response:

This is your own logic code design problem, the number of threads to grow, when you think about before we need to add a Timer thread? This thread is used to control? So you ask us directly said thread unlimited increase, also useless, you didn't find the problem,

CodePudding user response:

You to set up a public parameters barred him from multiple calls

CodePudding user response:

refer to the original poster weixin_39516696 response:
c # how to solve after using the timer thread unlimited

If it is a short threads, it is recommended to use a thread pool
But if the thread is not short,
So sure need to limit the total number of threads,

CodePudding user response:

Every once in a while a mission, you don't limit the number of threads will increase as the timer execution time

CodePudding user response:

Using asynchronous Task to deal with the logic,
  •  Tags:  
  • C#
  • Related