public static void main(String[] args) {
		for (int i = 0; i < 10; i++) {
			final int n = i;
			new Thread(new Runnable() {
				
				@Override
				public void run() {
					if (n % 2 == 0) {
						read();
					} else {
						write();
					}
				}
			}, (i %2 == 0) ? ("Reader " + i) : ("Writer " + i)).start();
		}
	}