https://9lib.net/document/dzxl5wvz-threshold-based-dynamic-allocation-algorithm-markov-chain-approach.html