package threadexamples;

public class MainTest {

	public static void main(String[] args) {
		ThreadOne t1 = new ThreadOne();
		Thread t1t = new Thread(t1);
		ThreadTwo t2 = new ThreadTwo();
		t1t.start();
		t2.start();
		try {
			for (int x=0; x<5; x++) {
				System.out.println("Main Thread sleeps for 100 ms-----------");
				Thread.sleep(100);
			}
		} catch(Exception e) {
			System.out.println(e);
		}
	}
}
