Hello from the main thread
Hello world from thread 1
Hello world from thread 2
Hello world from thread 0
Hello world from thread 3
Hello world from thread 5
Hello world from thread 4
Hello world from thread 6
Hello world from thread 7
Goodbye from the main thread