Jump to content

Alisson Suart

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. I'll try to explain it another way. I have a form that contains 10 idThreadsComponent components ( TidThreadComponents). I want each of them to run separately, but in a time interval. It turns out that I have had cases where Windows gave an error that there were no more resources available to allocate these threads in memory, and this caused the failure. I was thinking that, if I add any of the Scheduler components, this execution management would be done by the component, so that there is no overhead of threads running in Windows, and it no longer causes the unavailable resource error. (Sorry, I'm translating the message). Vou tentar explicar de outra forma. Eu tenho um form que contém 10 componentes idThreadsComponent. Cada um deles eu quero que execute separadamente, porém em um intervalo de tempo. Acontece que eu tive casos que o windows deu um erro que não havia mais recursos disponíveis para alocar essas threads em memoria, e com isso causa a falha. Eu estava pensando que, se adicionar algum dos componentes Scheduler, se esse gerenciamento de execução seria feito pelo componente, para que não haja sobrecarga de threads em execução no windows, e com isso não de mais o erro de recurso indisponível.
  2. Hello everybody, I have a process using a "cloning" of idThreadsComponents in my form. This cloning is based on the number of companies that I need to execute the process that I have. I can have 1 thread or more than 20 idThreads. I would like to understand if, if I add the idSchedulerOfThreadPool, and put a Pool Size = 5, if it will execute a queue of these 20 threads, that is, executing 5 threads at a time. In my process I just do a Start to start and when the whole process ends, I do a Stop. Then I wait with a Timer until the set time is reached to repeat the process. Would it be correct to use it this way? I have doubts about these Scheduler components and how to use them. If you can help me. I thank.
×