M
mircu
Hello,
What would be the best for implementing architecture that runs several,
independent, scheduled or run by the user on demand task in the same time?
Now in my program every task creates it's own thread and run in it and
after it completes the thread is destroyed automatically by the
framework. So it is the simplest solution and I think it can be done
better.
I thought about using ThreadPool but the limit of 25 thread can be a
limitation for me and also I read that thread pool is rather for short
time operations. But my tasks can be running from seconds to a few
hours. I quickly adopted ThreadPool method and I noticed that the
program do not takes so much CPU time as the my original implementation.
Are ThreadPool tasks run on lower priority?
Thanks in advance.
Regards,
mircu
What would be the best for implementing architecture that runs several,
independent, scheduled or run by the user on demand task in the same time?
Now in my program every task creates it's own thread and run in it and
after it completes the thread is destroyed automatically by the
framework. So it is the simplest solution and I think it can be done
better.
I thought about using ThreadPool but the limit of 25 thread can be a
limitation for me and also I read that thread pool is rather for short
time operations. But my tasks can be running from seconds to a few
hours. I quickly adopted ThreadPool method and I noticed that the
program do not takes so much CPU time as the my original implementation.
Are ThreadPool tasks run on lower priority?
Thanks in advance.
Regards,
mircu