java 併發編程【一個demo 學習--多個對象多把鎖(二)】

package com.study.thread; public class ThreadTest { private int count = 0; public synchronized void printNum (String tag) throws InterruptedException { if(tag.equals("a")){
相關文章
相關標籤/搜索