И C #, и Java определяют, что
*volatile чтения приобрели семантику
*volatile записи имеют семантику освобождения
Мои вопросы:
- Is this the only correct way to define volatile.
- If not, will things be awfully different if the semantics were reversed, that is
- volatile reads have release semantics
- volatile writes have acquire semantics