Incrementing identity columns are reset so that the next value allocated will be one step value more than the highest value in the remaining records 增量标识列被重置,以使分配的下一个值比所保留记录中的最高值大一个步长值。
The for loop container can use expressions to build the initialization , evaluation , and the incrementing statements that the looping structure uses For循环容器可以使用表达式来生成循环结构使用的初始化语句、计算语句、增量语句。
An auto - incrementing integer column will still be added to the table , but no child table will be created or filled , and no relation will be created 仍会将自动递增整数列添加到该表中,但不会创建或填充任何子表并且不会创建任何关系。
Note that this merely indicates whether a column of this data type may be auto - incrementing , not that all columns of this type are auto - incrementing 注意,这只是表示此数据类型的列可能是自动递增的,而不是表示所有此类型的列都是自动递增的。
But a smart jvm will observe that the counter variables are never accessed , and can therefore eliminate the code associated with incrementing them 但聪明的jvm会发现,这两个计数器变量从来没有被访问过,因此可以消除与使这些变量递增有关的代码。
Element in the dataset , identify the first child of each parent , set a counter to zero and then follow pointers from child to child , incrementing the counter every time a 元素的父元素,标识每个父元素的第一个子元素,将计数器设置为0 ,然后随着指针从子元素到子元素,每遇到一个
No os functionality is needed ; the implementation of this function simply walks down the string , incrementing a counter for each character , until it reaches the null character that terminates the string 不需要操作系统功能;该函数的实现只是遍历字符串,并对每个字符增加计数器,直到到达终止该字符串的终止null字符。
Methods . for example , a common usage scenario for semaphores involves a producer thread and a consumer thread , with one thread always incrementing the semaphore count and the other always decrementing it 例如,信号量的一个常用方案包括一个生产者线程和一个使用者线程,其中一个线程总是增加信号量计数,而另一个线程总是减少信号量计数。
Even in the absence of hazards like this , locks are simply a relatively coarse - grained coordination mechanism , and as such , are fairly " heavyweight " for managing a simple operation such as incrementing a counter or updating who owns a mutex 甚至没有这种危险,锁定也仅是相对的粗粒度协调机制,同样非常适合管理简单操作,如增加计数器或更新互斥拥有者。
However , under heavy contention , performance will suffer dramatically , as the jvm spends more time dealing with scheduling threads and managing contention and queues of waiting threads and less time doing real work , like incrementing counters 然而,在竞争激烈时,这将大大损害性能,因为jvm用了更多的时间来调度线程,管理竞争和等待线程队列,而实际工作(如增加计数器)的时间却很少。