If you compile both versions, you'll find that the one that recomputes the length instead of storing it is smaller in size by several bytes.
如果你编译这两个版本,你会发现重新计算长度的版本比存储它的版本小几个字节。
2
The recalculation loop (which recomputes the time slices for the processes) and the goodness loop have been eliminated, and o (1) algorithms are used for wakeup and schedule .