Package JACE.Concurrency

Examples of JACE.Concurrency.ThreadManager


  /**
   * Command line: optional number of threads to create (defaults to 2)
   */
  public static void main (String args [])
  {
    ThreadManager tm = new ThreadManager ();
    int n = 2;

    ACE.enableDebugging ();

    try
      {
  if (args.length == 1)
    {
      n = Integer.parseInt (args[0]);
    }
      }
    catch (NumberFormatException e)
      {
  ACE.ERROR ("Illegal argument.");
      }

    tm.spawnN (n,
         new TokenTest (),
         false);
  }
View Full Code Here

TOP

Related Classes of JACE.Concurrency.ThreadManager

Copyright © 2018 www.massapicom. 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.