首页 > TAG信息列表 > java167
java167-生产者消费者问题
class Ck { private char[] r1 = new char[8]; private int wp = 0; public synchronized void shengchan(char aa) { while (wp == r1.length) //满了 try { this.wait();java167-生产者消费者问题
class Ck { private char[] r1 = new char[8]; private int wp = 0; public synchronized void shengchan(char aa) { while (wp == r1.length) //满了 try { this.wait();