Package aleph

Examples of aleph.GlobalObject.release()


     join.waitFor();
     // Print out the result
     Matrix matrix = (Matrix) global.open("r");
     System.out.println("The result matrix is: ");
     System.out.println(matrix);
     try { global.release(); } catch (AlephException x) {}
     System.out.println("Elapsed time: " +
      ((double) (System.currentTimeMillis() - start)) / 1000.0
      + " seconds");
     System.out.flush();
   }
View Full Code Here


    System.out.println(howMany + "\t" + (double) duration / (double)
        iterations);
    try {
      SharedCounter shared = (SharedCounter) object.open("w");
      System.out.println("Final counter value: " + shared.value);
      object.release();
    } catch (AlephException e) {}
  }
  public static class SharedCounter implements java.io.Serializable {
    public long value;
  }
View Full Code Here

    if (Aleph.verbosity(Constants.LOQUACIOUS))
      System.out.print("Left ");
    t._left = buildTree(leftN, dir, peNo+numPE/2, numPE/2, minX, med, minY, maxY);
  } else // Remote PE
    try {
      gb.release();
    } catch (AlephException ale) {
      Aleph.warning("Release failed: " + ale.getMessage());
    }
    Builder builder = new Builder(gb, leftN, dir, peNo+numPE/2, numPE/2,
          minX, med, minY, maxY);
View Full Code Here

    if (Aleph.verbosity(Constants.LOQUACIOUS))
      System.out.print("Left ");
    t._left = buildTree(leftN, dir, peNo+numPE/2, numPE/2, minX, maxX, minY, med);
  } else // Remote PE
    try {
      gb.release();
    } catch (AlephException ale) {
      Aleph.warning("Release failed: " + ale.getMessage());
    }
    Builder builder = new Builder(gb, leftN, dir, peNo+numPE/2, numPE/2,
          minX, maxX, minY, med);
View Full Code Here

    t._next = null;
    t._prev = null;
    jv.waitFor();
   
    try {
      gb.release();
    } catch (AlephException ale) {
      Aleph.warning("Release failed: " + ale.getMessage());
    }
    return gb;
    //new GlobalObject(t);     
View Full Code Here

    gprev = t._prev;
    prev = (Tree) gprev.open("w");
    prev._next = null;
    t._prev = null;
    try {
      gprev.release();
    } catch (AlephException ale) {
      Aleph.warning("Release failed: " + ale.getMessage());
    }

    gback = root;
View Full Code Here

    }

    prev = (Tree) gprev.open("w");
    prev._prev = gtmp;
    try {
      gprev.release();
    } catch (AlephException ale) {
      Aleph.warning("Release failed: " + ale.getMessage());
    }

  }
View Full Code Here

    gcycle = gt;
    gt = t._next;
    t._next = gcycle;
    t._prev = gcycle;
    try {
      gcycle.release();
    } catch (AlephException ale) {
      Aleph.warning("Release failed: " + ale.getMessage());
    }

    for (; gt != null; gt=gdonext) { // loop over remaining points
View Full Code Here

      gmin = gcycle;
      cycle = (Tree) gcycle.open("r");
      mindist = distance(t, cycle);
      gtmp = cycle._next;
      try {
  gcycle.release();
      } catch (AlephException ale) {
  Aleph.warning("Release failed: " + ale.getMessage());
      }

      while (!gtmp.equals(gcycle)) {
View Full Code Here

    gmin = gtmp;
        } /* if */
  oldgtmp = gtmp;
  gtmp = tmp._next;
  try {
    oldgtmp.release();
  } catch (AlephException ale) {
    Aleph.warning("Release failed: " + ale.getMessage());
  }
      } /* while gtmp... */

 
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.