shared variables 中文意思是什麼

shared variables 解釋
變量共享
  1. Provides atomic operations for variables that are shared by multiple threads

    為多個線程共享的變量提供原子操作。
  2. Locks around shared variables allow java threads to quickly and easily communicate and synchronize

    給共享變量上鎖就使得java線程能夠快速方便地通信和同步。
  3. Some very strange things can happen if you fail to synchronize when accessing shared variables

    如果在訪問共享變量的時候沒有同步的話,就會發生一些奇怪的事情。
  4. Volatile variables can also be used to store shared variables at a lower cost than that of synchronization, but they have limitations

    還可以使用可變變量來以比同步更低的成本存儲共享變量,但它們有局限性。
  5. Unfortunately, this situation is a common use case for volatile - using a volatile field as a " guard " to indicate that a set of shared variables had been initialized

    不幸地,這是volatile常見用例用一個volatile欄位作為「守護」表明已經初始化了一組共享變量。
  6. In particular, nearly every modern processor has instructions for updating shared variables in a way that can either detect or prevent concurrent access from other processors

    特別是,幾乎每個現代處理器都有通過可以檢測或阻止其他處理器的並發訪問的方式來更新共享變量的指令。
  7. Developers may find use for atomic variables directly as a higher - performance replacement for shared counters, sequence number generators, and other independent shared variables that otherwise would have to be protected by synchronization

    開發人員可以直接將原子變量用作共享計數器、序號生成器和其他獨立共享變量的高性能替代,否則必須通過同步保護這些變量。
  8. In this approach, design tasks are decomposed into a system - level optimization and subsystem - level optimizations. the task of each subsystem optimization is to find the local variables to minimize or maximize objectives, subject to its local design constraints. the task of the system - level optimization is to find global ( or shared ) and auxiliary variables to optimize the system performances, and satisfy the consistency constraints

    這種方法將優化流程分為系統級優化和單學科優化兩個層次:系統級優化的任務是通過調整共享設計變量和輔助設計變量,在滿足一致性約束條件下,使系統目標最優;子系統的任務是調整局部設計變量,在滿足本學科的設計要求條件下,使子系統的目標最優。
  9. Without shared fields and properties, you would need to use module - level variables to achieve the same effect

    如果沒有共享欄位和屬性,就需要使用模塊級變量來獲得同樣的效果。
  10. Data that is shared by multiple sessions and does not change often is the ideal type of data to insert into application - state variables

    由多個會話共享並且不經常更改的數據是插入到應用程序狀態變量的理想數據。
  11. The combination of mutual exclusion and memory barriers means that as long as programs follow the correct synchronization rules that is, synchronize whenever writing a variable that may next be read by another thread or when reading a variable that may have been last written by another thread, each thread will see the correct value of any shared variables it uses

    互斥獨占和內存壁壘結合使用意味著只要您在程序設計的時候遵循正確的同步法則(也就是說,每當寫一個後面可能被其他線程訪問的變量,或者讀取一個可能最後被另一個線程修改的變量時,都要使用同步) ,每個線程都會得到它所使用的共享變量的正確的值。
  12. The key to * * code reentrant is to ensure mutual exclusion whenever accessing global variables or shared registers

    使代碼可再入的關鍵在於確保在訪問全局變量或共享寄存器時互斥現象發生。
  13. The key to making code reentrant is to ensure mutual exclusion whenever accessing global variables or shared registers

    使代碼可再入的關鍵在於確保在訪問全局變量或共享寄存器時互斥現象發生。
  14. Using process - shared mutexes and condition variables

    使用進程共享的互斥體( mutex )和條件變量
  15. All variables that contain shared data must be placed in a shared data section

    這樣包含了共享數據的變旦就必須被放在一個共享的數據區。
分享友人