奈學(xué)如何進(jìn)行行研分析
? ?while (container.value != null) {
? ? ? ? ? ? ? ? ? ? ? ?try {
? ? ? ? ? ? ? ? ? ? ? ? ? ?container.wait();
? ? ? ? ? ? ? ? ? ? ? ?} catch (InterruptedException e) {
? ? ? ? ? ? ? ? ? ? ? ? ? ?Thread.currentThread().interrupt();
? ? ? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ? ?int random = new Random().nextInt(40);
? ? ? ? ? ? ? ? ? ?try {
? ? ? ? ? ? ? ? ? ? ? ?Thread.sleep(500);
? ? ? ? ? ? ? ? ? ?} catch (InterruptedException e) {
標(biāo)簽: