Version 2 of tpool

Updated 2017-07-31 14:56:22 by MHo

MHo 2017-07-31 There's something that I don't understand:

Why ist the runtime of

set pool1 [tpool::create -minworkers 10 -maxworkers 20 -idletime 10 -initcmd $initCmd -exitcmd $exitCmd]

double the time of

set pool1 [tpool::create -minworkers 20 -maxworkers 20 -idletime 10 -initcmd $initCmd -exitcmd $exitCmd]

(The workers are only sleeping using after 10000 in this case.)

The first call runs ~20,xs, the second one, as expected, ~10,xs.

The documentation states, the only difference is the time at which the workers are created - beforehand, or "on demand" when a post is done. As there are enough -maxworkers defined, what is limiting the operation then...?