Hello from the main thread
Hello world from thread 3
Hello world from thread 4
Hello world from thread 4
Hello world from thread 4
Hello world from thread 6
Hello world from thread 6
Hello world from thread 7
Hello world from thread 4
Goodbye from the main thread