synchronized boolean unlock(int transactionId)
	{
		if (lockOwner == NOT_LOCKED || lockOwner != transactionId) {
			System.err.println("Error: Transaction " + transactionId + " tried to unlock a resource without owning the lock!");
			return false;
		}

		lockOwner = NOT_LOCKED;
		// Notify a waiting thread that it can acquire the lock
		notifyAll();
		return true;
	}