Examples of MemoryReturnType


Examples of uk.ac.uea.threadr.threadrtest.ThreadrTest.MemoryReturnType

  }
 
  @Override
  public AbstractReturnType<?> call() {
   
    MemoryReturnType result = new MemoryReturnType();
   
    boolean sorted = false;
    while(!sorted) {
      sorted = true;
      for (int i = 1; i < SIZE; i++) {
        if (values[i-1] > values[i]) {
          int tmp = values[i];
          values[i] = values[i - 1];
          values[i - 1] = tmp;
          sorted = false;
        }
      }
    }
    result.setResult(MemoryMonitor.getInstance());
    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.