/*  Taken from Paul Butcher: Seven Concurrency Models in Seven Weeks
 * HelloWorld, chapter 1, location 326/7299
 */
public class HelloWorld {

	public static void main(String[] args) throws InterruptedException {
		Thread myThread = new Thread() {
			public void run () {
				System.out.println("Hello from new thread");
			}
		};
		
		myThread.start();
		Thread.yield();
		System.out.println("Hello from main thread");
		myThread.join();
	}
}
