This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I have written this small test code to show the difference in the graphical output of 2 different JVMs i.e. Apple JDK 1.5.0 and Windows JDK 1.5.0_13. When I execute this code in Apple JVM, I can see the message "Hi There" quite clearly. Whereas, in Windows JVM, the message is harder be seen if I set Thread.sleep to 100. If I increase the sleep period, I could see a blinking "Hi There" message. Is this has to do with the way I have written the code (probably, I am missing something here) or the JVMs implementation? Either way, how can make this work the way I wanted it? Please advise. Thanks.