                         deadlockedThread = j;                         visited[j] = true;                         break;                     }                 }                 if (deadlockedThread < 0) {                 