SimpleDateFormat thread problems?

Tom Tromey tromey@redhat.com
Mon May 10 18:27:00 GMT 2004


>>>>> "Vladimir" == Vladimir Leven <vladimirl@wrx-ca.com> writes:

Vladimir> (which is updated by another thread, but presumably
Vladimir> this.time = System.currentTimeMillis is atomic?)
Assignment of a `long' is not guaranteed to be atomic. This comes
from the JLS or perhaps the JVM spec, I forget.
Vladimir> Related question: Is there a way to dump the stack trace for a given
Vladimir> thread? I can only seem to look at the stack trace for the currently
Vladimir> running thread.
In gdb, just switch to the thread you're interested in with the
"thread" command, then "bt".
Outside of gdb, no, I don't think there is a way.
Tom


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /