Content deleted Content added
Hervegirod (talk | contribs) |
Hervegirod (talk | contribs) |
||
Line 215:
|year=2013
|access-date=2013-05-12
}}</ref><ref>{{cite web
| url=https://dzone.com/articles/java-concurrency-understanding-the-volatile-keyword
| title=Java Concurrency: Understanding the ‘Volatile’ Keyword
| date=2021-03-08
| publisher=dzone.com
| archive-url=https://web.archive.org/web/20210509104459/https://dzone.com/articles/java-concurrency-understanding-the-volatile-keyword
| archive-date=2021-05-09
| access-date=2021-05-09}}</ref>
Using <code>volatile</code> may be faster than a [[lock (computer science)|lock]], but it will not work in some situations before Java 5.<ref>{{cite web
|