# | Line 46 | Line 46 | public class CASLoops { | |
---|---|---|
46 | if (args.length > 0) | |
47 | maxThreads = Integer.parseInt(args[0]); | |
48 | ||
49 | < | loopIters = new long[maxThreads+1]; |
49 | > | loopIters = new long[maxThreads+1]; |
50 | ||
51 | if (args.length > 1) | |
52 | includeLocks = true; | |
# | Line 569 | Line 569 | public class CASLoops { | |
569 | if (nthreads > NCPUS) | |
570 | t = t * NCPUS / nthreads; | |
571 | System.out.print(LoopHelpers.rightJustify(t)); | |
572 | < | double secs = (double)(runtime) / 1000000000.0; |
572 | > | double secs = (double) runtime / 1000000000.0; |
573 | System.out.println("\t " + secs + "s run time"); | |
574 | } | |
575 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |