首页 > TAG信息列表 > ThreadExceptionDemo

synchronized的类锁和对象锁区别

对象锁: public class ThreadExceptionDemo { public static void main(String[] args) throws InterruptedException { new Thread(new Runnable() { @SneakyThrows @Override public void run() { ThreadExcep