public synchronized void lockWrite() {
		while (readers > 0 || writers > 0) {
			try {
				logger.info("A writer is writing or a reader is reading, please wait!");
				this.wait();
			} catch (InterruptedException e) {
				logger.debug(e.getMessage(), e);
			}
		}
		writers++;
	}