Skip to content

Synchronization

"synchronization"即“同步”,当涉及到多个entity时,它们之间的synchronization非常重要。

wikipedia Synchronization (computer science)

In computer science, synchronization refers to one of two distinct but related concepts: synchronization of processes, and synchronization of data.

NOTE: 需要注意的是,原文中使用的是process,我们不能够仅仅局限于process,而是任何能够synchronization的entity,比如thread。

Process synchronization refers to the idea that multiple processes are to join up (汇合)or handshake at a certain point, in order to reach an agreement or commit to a certain sequence of action. Data synchronization refers to the idea of keeping multiple copies of a dataset in coherence with one another, or to maintain data integrity.

Process synchronization primitives are commonly used to implement data synchronization.

NOTE: 这段话描述了两种synchronization之间的关系。