如果条件为真,执行循环体,然后再调回到第一步。
If the condition is true, run the body and then go back to step 1.
这意味着循环体中执行的程序语句必须要改变表达式的值,否则循环将无法结束。
This means the program statements executed in the loop body must change the value of the expression — or else the loop will never end.
根据我们的观察,我们似乎需要对一些锁的访问进行优化,比如线程执行的同步块代码在一个循环体中。
In light of our observation it seems as if we should be able to optimize access in the case where a thread is looping over a synchronized block of code.
因为在琎入循环以湔,WHILE的条件是姺给的,因为妸能循环体不止执行壹次。
Since the WHILE condition is evaluated before entering the loop, it is possible that the loop body may not execute even once.
因为在进入循环以前,WHILE的条件是先给的,因为可能循环体不止执行一次。
Since the WHILE condition is evaluated before entering the loop, it is possible that the loop body may not execute even once.
因为在进入循环以前,WHILE的条件是先给的,因为可能循环体不止执行一次。
Since the WHILE condition is evaluated before entering the loop, it is possible that the loop body may not execute even once.
应用推荐