mpi.fruitfly.general
Class MultiThreading

java.lang.Object
  extended by mpi.fruitfly.general.MultiThreading

public class MultiThreading
extends java.lang.Object

Title: MultiThreading

Description:

Copyright: Copyright (c) 2007

Company:

License: GPL This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Constructor Summary
MultiThreading()
           
 
Method Summary
static java.lang.Thread[] newThreads()
           
static java.lang.Thread[] newThreads(int numThreads)
           
static void startAndJoin(java.lang.Thread[] threads)
           
static void startTask(java.lang.Runnable run)
           
static void startTask(java.lang.Runnable run, int numThreads)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiThreading

public MultiThreading()
Method Detail

startTask

public static void startTask(java.lang.Runnable run)

startTask

public static void startTask(java.lang.Runnable run,
                             int numThreads)

newThreads

public static java.lang.Thread[] newThreads()

newThreads

public static java.lang.Thread[] newThreads(int numThreads)

startAndJoin

public static void startAndJoin(java.lang.Thread[] threads)