javax.realtime.test.preemption
Class Main

java.lang.Object
  extended byjavax.realtime.test.preemption.Main

public class Main
extends java.lang.Object

Main program for a simple test of the

Constructor Summary
Main()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main method for this simple test of the Resource subclasses: PriorityInheritanceResource, PreemptableResource, and PriorityCeilingResource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)
Main method for this simple test of the Resource subclasses: PriorityInheritanceResource, PreemptableResource, and PriorityCeilingResource.

Parameters:
args -
  • if arg[0] equals true then run simulation with randomize set to true
  • arg[1] should equal PriorityInheritanceCPU, PreemptableCPU, or PriorityCeilingCPU; a resource is constructed representing a CPU managed under the indicated policy.
  • In the case of PriorityCeilingCPU, an arg[2] is required giving the resource's priority ceiling.