循环体可以包含任意多的语句。
循环体是否足够短,能够一次看清楚?
循环体是否为空?
如果条件为真,执行循环体,然后再调回到第一步。
If the condition is true, run the body and then go back to step 1.
正因为这些原因,一个处于循环内部的锁是不会被粗化到包含整个循环体的。
Because of this, locks inside a loop are not coarsened to include the looping construct.
正因为这些原因,一个处于循环内部的锁是不会被粗化到包含整个循环体的。
Because of this, locks inside a loop are not coarsened to include the looping construct.
应用推荐