thread bugs war stories jax in... · 2020-01-01 · heinz kabutz l author of the java...
TRANSCRIPT
ThreadBugsWarStories
HeinzKabutzl AuthorofTheJavaSpecialists'Newsletter
– ArticlesaboutadvancedcoreJavaprogramming
l http://www.javaspecialists.eu
WhatIsABug?
AndWhatIsAThreadingBug?
RaceCondition
Deadlock
`
Contention
ThreadLeak
Livelock
Visibility
HowDoWeFindAThreadingBug?
#1Persistence
Nevergiveup
Never
Ever
Ever
Ever
Ever
Give
Up
#2Luck
#3Don’tTouch
#4DoubtEverything
Tools
StaticCodeAnalysers
ThreadSafe
http://www.contemplateltd.com/
threadsafe
Google’sJChord
https://code.google.com/p/
jchord/
BruteForceAnalysers
jcstresshttp://openjdk.java.net/
projects/code-tools/jcstress/
Questions?
ThreadBugsWarStories