@Override
	public int compareTo(GScheduledTask other) {
		if (this == other) {
			return 0;
		}
		if (priority == other.priority) {
			return id > other.id ? 1 : -1;
		}
		return priority - other.priority;
	}
Returns the GTaskMonitor that will be used for this task.
@return the GTaskMonitor that will be used for this task.
Ghidra/Framework/Project/src/main/java/ghidra/framework/task/GScheduledTask.java