while (true) {
while (!ready) {
	public void waitOnLock() {		synchronized (lock) {			while (true) {				try {					lock.wait();					return;				} catch (InterruptedException e) {					// TODO Auto-generated catch block					e.printStackTrace();				}			}		}	}