package com.threadtest; /** * Copyright Declarative Engineering LLC 2009
*/ public class TestMain { /** * @param args */ public static void main(String[] args) { // System.out.println("Starting test"); // new Thread(new Runnable() { // public void run() { // System.out.println("Inside thread."); // } // }).start(); // // System.out.println("Thread started"); // try { // synchronized(TestMain.class) { // TestMain.class.wait(0); // } // } // catch(Throwable e) { // e.printStackTrace(); // } //TestObject.getSingleton(); // System.out.println("Starting SWT event loop thread."); // Thread t = new Thread(TestObject.getSingleton()); // // t.start(); // // System.out.println("Synchronzing"); // synchronized(TestObject.getSingleton()) { // while(!TestObject.getSingleton().isInitialized) { // System.out.println("Waiting for isInitialized"); // try { // TestObject.getSingleton().wait(0); // }//try// // catch(Throwable e) { // e.printStackTrace(); // }//catch// // }//while// // }//synchronized// TestStarter.getSingleton(); } }