thread.sleep(10)出问题。进来一个就躺下10ms,10毫秒程序就运行完了。sleep(0),就可以。电脑太快了
Thread-2..........30
Thread-2..........29
Thread-2..........28
Thread-2..........27
Thread-2..........26
Thread-2..........25
Thread-2..........24
Thread-3..........23
Thread-1..........22
Thread-1..........21
Thread-3..........20
Thread-3..........19
Thread-3..........18
Thread-3..........17
Thread-3..........16
Thread-3..........15 |