package dustin.examples.jmx.threading; import static java.lang.System.out; /** * Example of a class that often will lead to deadlock adapted from the * Java Tutorials ...
public class Singleton { private String var1; private Long var2; //...private constructor and all the good // stuff to ensure that only one instance of this class is created even across threads goes ...