文章列表
package sort;
public class SOrton {
public static void main(String[] args) {
int [] arrs = {6,1,2,7,9,3,4,5,10,8,3,4,6,10,43,2,12,66,66,1,77};
long a =System.currentTimeMillis();
//quickSort(arrs,0,arrs.length-1);
//bubbleSort(arrs);
//insertSort(arrs);
///selectSort(arrs);
mergeSor ...
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicInteger;
public class VolatileTest {
private AtomicInteger count1 = new AtomicInteger(0);
private volatile int count = 0;
p ...