SCJP6.0,My blog Ranchers from Delhi
SCJP6.0,My blog Ranchers from Delhi
Oracle Certified Professional: Java SE 6 Programmer && Oracle Certified Expert: (JEE 6 Web Component Developer && JEE 6 EJB Developer)
SCJP6.0,My blog Ranchers from Delhi
Oracle Certified Professional: Java SE 6 Programmer && Oracle Certified Expert: (JEE 6 Web Component Developer && JEE 6 EJB Developer)
SCJP6.0,My blog Ranchers from Delhi
SCJP6.0,My blog Ranchers from Delhi
OCPJP 6
Vinoth Kumar Kannan wrote:...you are not really thread-safe when you use it...
As a result of making volatile more "heavyweight," the performance cost of using volatile has been brought closer to the performance cost of synchronization in some cases, but the performance cost is still quite low on most platforms.
OCPJP 6
OCPJP 6
Vinoth Kumar Kannan wrote:
Actually, I said something I wasn't really sure of. Mine seemed to be the last post(no one opposing/correcting thereafter..), and when I read more on volatile & synchronization, I realized I was wrong and did a small update, so that folks in future who see this wrong post should not take it as something right - that being my intention actually.
Don't get me started about those stupid light bulbs. |