Java multithreading problem?
The two programs below produce the desired output even when I'm using 'synchronized'......Can anyone explain whats wrong with the code.The code is from Herbert Schildt,though I made some changes.
CODE 1:
class callMe
{
Interesting. Please state you goal, but I think I figured it out. You want to print the whole message, so that it's not interleaved right?
Here's the problem...I think. Synchronized puts a lock so that nobody else can enter this method




