How to test concurrency?

what are best practices and tools to test concurrency and ensure thread safe code? how do you go about testing concurrency? along with stress testing and doing static code analysis what should you check? how do you check liveness and make sure you don't get livelock, deadlock nor race conditions?
Was this page helpful?