mutual exclusion lock 中文意思是什麼
mutual exclusion lock
解釋
術語稱為相互排斥鎖-
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
雖然可以保證其他變量可以立即看到對可變變量的寫入,但無法呈現原子操作的讀-修改-寫順序,這意味著(比如說)可變變量無法用來可靠地實現互斥(互斥鎖定)或計數器。
分享友人