The document describes a technique for using clone detection and bug patterns to improve testing of concurrent software. Clone detection is used to identify code clones matching the code fragments from predefined bug patterns. These clone matches are evaluated based on interaction rules to identify high-potential concurrency bugs. The potential bugs are then reported to help focus testing efforts on the highest risk areas of thread interleaving space.