线程同步

并发:同一对象被多个线程同时操作

锁机制:synchronized,一个线程获得该锁,其他线程必须等待(无论优先级)

原文地址:https://www.cnblogs.com/5aixin/p/11090217.html