frysk.testbed
Class FunitThreadsOffspring

java.lang.Object
  extended by frysk.testbed.Offspring
      extended by frysk.testbed.SynchronizedOffspring
          extended by frysk.testbed.FunitThreadsOffspring

public class FunitThreadsOffspring
extends SynchronizedOffspring

Create a program that contains a large number of threads.


Nested Class Summary
static class FunitThreadsOffspring.Type
           
 
Field Summary
 
Fields inherited from class frysk.testbed.SynchronizedOffspring
START_ACK
 
Constructor Summary
FunitThreadsOffspring(int threads)
          Create a program with a large number of threads, each thread joining its predicessor, cloning creating a successor, and then exiting (so its successor can join it).
FunitThreadsOffspring(int threads, FunitThreadsOffspring.Type type)
           
 
Method Summary
private static String[] funitThreadsCommand(int threads, FunitThreadsOffspring.Type type)
          Construct the argument list for funit-threads with THREADS thread-count and TYPE.
 
Methods inherited from class frysk.testbed.SynchronizedOffspring
getPid
 
Methods inherited from class frysk.testbed.Offspring
assertIs, assertRunToFindProc, assertRunUntil, assertSendStop, findTaskUsingRefresh, kill, signal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunitThreadsOffspring

public FunitThreadsOffspring(int threads)
Create a program with a large number of threads, each thread joining its predicessor, cloning creating a successor, and then exiting (so its successor can join it). At any time there is somewhere between 1(main)+THREADS and 1+2*THREADS.


FunitThreadsOffspring

public FunitThreadsOffspring(int threads,
                             FunitThreadsOffspring.Type type)
Method Detail

funitThreadsCommand

private static String[] funitThreadsCommand(int threads,
                                            FunitThreadsOffspring.Type type)
Construct the argument list for funit-threads with THREADS thread-count and TYPE.