private void acquiereLock(Lock fistLock, Lock seconlock)
			throws InterruptedException {
		boolean gotFirstLock = false;
		boolean gotSecondLock = false;
		while (true) {
			try {
				gotFirstLock = fistLock.tryLock();
				gotSecondLock = seconlock.tryLock();
			} finally {
				if (gotFirstLock && gotSecondLock) {
					return;
				}
				if (gotFirstLock) {
					fistLock.unlock();
				}
				if (gotSecondLock) {
					seconlock.unlock();
				}
			}
			Thread.sleep(1);

		}
	}