Nem hiszem, hogy lenne ilyen egyszerű algoritmus. Végig kell olvasni a threadet, és eldönteni, hogy ki volt a hunyó.