 
      
    | You are here | www.brutman.com | ||
| | | | | www.isc.org | |
| | | | | Modern, open source DHCPv4 & DHCPv6 server | |
| | | | | www.kegel.com | |
| | | | | ||
| | | | | serd.es | |
| | | | | ||
| | | | | loonytek.com | |
| | | 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... | ||