Explore >> Select a destination


You are here

www.masswerk.at
| | www.c64os.com
7.2 parsecs away

Travel
| |
| | www.timdbg.com
14.3 parsecs away

Travel
| |
| | gpfault.net
15.2 parsecs away

Travel
| |
| | loonytek.com
79.3 parsecs away

Travel
| In this post, I will talk about usage of volatile fields in Java and how volatile is different from synchronized. Both volatile and synchronized are used in multi-threaded programs to get some degree of thread safety depending on the operations performed by different threads. Consider the following piece of code class VolatileDemo { private int...