コード例 #1
0
  /** @param args */
  public static void main(String[] args) throws Exception {
    int max_thread = 20000;
    if (args.length > 0) {
      max_thread = Integer.parseInt(args[0]);
    }

    for (int i = 0; i < max_thread; i++) {
      PrimeThread p = new PrimeThread(10000);
      p.start();
    }
  }