read-write counter 中文意思是什麼
read-write counter
解釋
讀寫計數器-
To access the counter in read write mode
;若要以讀/寫模式訪問計數器,則為 -
True to access the counter in read - only mode though the counter itself could be read write
若要以只讀模式訪問計數器(即使計數器本身可能是可讀/寫的) ,則為 -
While writes to volatile variables are guaranteed to be immediately visible to other threads, there is no way to render a read - modify - write sequence of operations atomic, meaning, for example, that a volatile variable cannot be used to reliably implement a mutex mutual exclusion lock or a counter
雖然可以保證其他變量可以立即看到對可變變量的寫入,但無法呈現原子操作的讀-修改-寫順序,這意味著(比如說)可變變量無法用來可靠地實現互斥(互斥鎖定)或計數器。
分享友人