ghkweon / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

Min/Max for TIOCPWorkerThreadPool #481

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to have some sort of min and max for threads if queue goes 
past X amount. Which could be enabled or disabled via "property DynamicSize".

Original issue reported on code.google.com by david.lo...@gmail.com on 27 Jul 2014 at 8:36

GoogleCodeExporter commented 8 years ago
Such a behavior will tend to cascade badly in case of high workload.

It's better to just have a fixed number of threads (based on the number of CPUs 
or the number of simultaneous tasks the host can handle), and leave the unused 
ones idle, as idle threads are quite cheap in recent Windows versions.

Original comment by zar...@gmail.com on 4 Aug 2014 at 9:30