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

		}
	}