5

Possible Duplicate:
Java multi-threading & Safe Publication

I did not understand what unsafe publication is. Can anyone provide a simple example for unsafe publication and explain the adverse effect based on the example.

EDIT: This is not a duplicate of the question mentioned as "Possible duplicate". Please reopen this.

Community
  • 1
  • 1
softwarematter
  • 28,015
  • 64
  • 169
  • 263
  • 3
    that question is different. pls don't close – softwarematter Oct 06 '10 at 02:46
  • 3
    I was not able to find a good example "via simple Google search". Also, I think that most Java programmers are unaware of this. Kindly don't close. Don't deny the opportunity to learn from experts here. – softwarematter Oct 06 '10 at 02:51
  • Example - http://codeidol.com/java/java-concurrency/Sharing-Objects/Safe-Publication/ – Jonathan Holloway Oct 06 '10 at 02:55
  • 2
    This question is in no way a duplicate. The moderators simply read the question title and are too lazy to read the details and figure out how well the responses answer the OP's question. – Flame of udun Oct 10 '16 at 08:32

0 Answers0