Thread Safety (Concurrency)

Article by:
Date Published:
Last Modified:

Overview

Thread safety is largely built into the Java language, either via specialised keywords such as synchronized or via standard library objects.

synchronized

The synchronized keyword (recognised by the Java compiler) can be used to enforce synchronous access (i.e. non-concurrent) to class methods.

It is a quick tool to reach for if you have basic concurrency issues.


Authors

Geoffrey Hunter

Dude making stuff.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License .

Tags

    comments powered by Disqus