Modified crack detection algorithm based on multiple threads