but on which.
I'm wondering cause I was told that the output will 3. So this invocation has to ensure that run-method will run before doSomething adds 1 and prints out i.
What's the order of execution? Or as we're talking about Threads, What could be the order?
Does this mean that in case of two running threads join() waits for the other one to finish, or what?
What if we have multiple threads???
As you can see, I'm a bit confused...
Thanks in advance,
[ August 15, 2008: Message edited by: Andreas Auer ]