Ted Neward mentioned that he is not aware of a unit testing tool for thread safety. I think that there should be one.
Ted recommends reading Release It by Michael Nygard.
Ted says never ever ever catch throwable. It can really hose up a threaded app.
JVM guarantees 32 bit atomicity. Longs and doubles are 64 bit, they need to be synchronized.
Threads don't switch on code lines. Threads switch on operation lines.
Threads are permitted to keep a local copy of field values if field not declared volatile.
Ted recommends Java Concurrency In Practice by Brian Goetz.
Field visibility is irrelevant to thread safety.
Two myths of the Java language: it is expensive to create objects and it is expensive to synchronize code.
Saturday, October 11, 2008
No Java Unit Test Tool For Thread Safety Testing--I'm taking notes from Ted Neward's Concurrency NFJS online
Del.icio.us Add to del.icio.us
Digg DiggIt!
Reddit Reddit
Stumbleupon Stumble This
Google Bookmarks Add to Google Bookmarks
Yahoo My Web Add to Yahoo MyWeb
Technorati Add to Technorati Faves
Slashdot Slashdot it
Labels:
NFJS,
Ted Neward,
testing,
thread safety
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment