java 多線程 鎖 synchronized 面試題

早上上網看博客的時候看見一道面試題。。便所以糾結了一天:java public class TestSync2 implements Runnable { int b = 100; synchronized void m1() throws InterruptedException { b = 1000; Thread.slee
相關文章
相關標籤/搜索