Abstract:The solution method of Java multi-thread synchronization is to add synchronization synchronized keyword.The synchronize code is synchronized by using synchronized,or the java.util.concurrent.lock package provided in JDK 5.In addition,the security issues,which perhaps occur during the multiple threads access the same variables,is solved by not only synchronization mechanism,but also adding ThreadLocal in JDK.