在清单6中,循环被移出同步语句,所以它可能由多个线程并行执行。
In Listing 6, the loop is out of a synchronized block, so it can be executed by several threads in parallel.
清单4的% MACRO_FUNCTION显示了使用while循环执行了40次的六条insert语句。
The % MACRO_FUNCTION of Listing 4 shows six insert statements executed 40 times using a while loop.
for 循环,它对一个语句块执行一定次数。
The for loop, which executes a block of statements a certain number of times
应用推荐