Commit ed908882 authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Modified hardcoded threshold for the dynamic thread pool, plus

documented what it means (Full documentation is anyway in DynamicThreadPool.hpp).
parent e519afa8
......@@ -47,9 +47,9 @@ namespace tapegateway {
* Default parameters to initialize the Dynamic Thread pool
*/
const uint64_t MIN_WORKER_THREADS = 20;
const uint64_t MIN_WORKER_THREADS = 5;
const uint64_t MAX_WORKER_THREADS = 20;
const uint64_t TG_THRESHOLD = 50;
const uint64_t TG_THRESHOLD = 5; // if the pending tasks go above 5% (i.e. 3 or more), a thread is spawn
const uint64_t TG_MAXTASKS = 50;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment