calling thread.start() within its own constructor [duplicate]

For memory-safety reasons, you shouldn’t expose a reference to an object or that object’s fields to another thread from within its constructor. Assuming that your custom thread has instance variables, by starting it from within the constructor, you are guaranteed to violate the Java Memory Model guidelines. See Brian Goetz’s Safe Construction Techniques for more info.

Leave a Comment