All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.thread.DoubleSortJob Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

There is a newer version: 20240823
Show newest version
package com.scudata.thread;


/**
 * ????ִ???????????
 * @author RunQian
 *
 */
class DoubleSortJob extends Job {
	private double []src;
	private double []dest;
	
	private int fromIndex; // ??ʼλ?ã?????
	private int toIndex; // ????λ?ã???????
	private int off; // ?????????ƫ????
	
	private int threadCount; // ?????߳???
	
	public DoubleSortJob(double []src, double []dest, int fromIndex, int toIndex, int off, int threadCount) {
		this.src = src;
		this.dest = dest;
		this.fromIndex = fromIndex;
		this.toIndex = toIndex;
		this.off = off;
		this.threadCount = threadCount;
	}
	
	public void run() {
		MultithreadUtil.mergeSort(src, dest, fromIndex, toIndex, off, threadCount);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy