@Override
		public int compare(PriorityJob o1, PriorityJob o2) {
			long priority1 = o1.getPriority();
			long priority2 = o2.getPriority();

			if (priority1 > priority2) {
				return 1;
			}
			else if (priority1 < priority2) {
				return -1;
			}
			return 0;
		}
This constructor allows you to change persistence and shared thread pool usage.

@param name the name of the shared thread pool.
@param isPersistentThread if true, the worker thread will stay around when idle;
            false means that the thread will go away if not needed. Should be true for 
            high frequency usage.
@param useSharedThreadPool true signals to use the given name to find/create a thread pool 
            that can be shared throughout the system.
@param monitor the monitor used to cancel jobs.
Ghidra/Framework/Generic/src/main/java/ghidra/util/worker/PriorityWorker.java