static void read() {
		while (!Thread.currentThread().isInterrupted()) {
			Lock readLock = rw.readLock();
			long val;
			readLock.lock();
			try {
				val = counter;
			} finally {
				readLock.unlock();
			}
			System.out.println(Thread.currentThread().getName() + ": " + val);
			try {
				Thread.sleep(200);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}