public int pop() {
		lock.lock();
		try {
			while (count == 0) {
				System.out.println("仓库已空");
				try {
					notEmpty.await();
				} catch (InterruptedException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
			int id = store.removeLast();
			System.out.println("消费：" + id);
			count--;
			notFull.signal();
			return id;
		} finally {
			lock.unlock();
		}
	}