将一些数字相乘来获得它们的积的代价是低廉的(毕竟,CPU周期就是金钱),但首先找到那些因数,而这项操作的代价却要高得多。
It is cheap (CPU cycles are money, after all) to multiply some Numbers together to find their product, but much more expensive to find those factors in the first place.
对于每个抽样周期,将 Lotus Domino 服务器实例使用的处理器时间(秒)除以活动用户的数量,就得到这些数字。
This depiction is obtained by dividing the number of processor seconds used by the Lotus Domino server instance into the number of active users for each sample period.
Cycles 栏中的数字列出了在 PTT 收集 统计数据的时间间隔内那个进程所使用的 CPU 周期数。
The number in the Cycles column lists the number of CPU cycles that the process used during the interval that PTT collected statistics.
So this line or these lines of code up here are arguably constant time steps to say if N is less than 2 in return, that it will always take maybe one step, maybe two steps, some number of fixed CPU cycles.
如果N小于2并返回,那么这些行所对应的代码,通常只需要执行一步,或者两步,具体数字与CPU周期有关。
应用推荐