public class ThreadActionTest
{
public static void main (String[] args)
{
BasicThreadedObject object1 = new BasicThreadedObject(true);
BasicThreadedObject object2 = new BasicThreadedObject(false);
System.out.println("Main thread has action "+BasicAction.Current());
object1.start();
object2.start();
Thread.yield();
try
{
object1.join();
object2.join();
}
catch (InterruptedException e)
{
}