int startIndex = countPerThread * i;
int endIndex = (countPerThread * (i + 1)) - 1;
if (endIndex >= personMatchCount) {
endIndex = personMatchCount - 1;
}
FindPersonThread fpt = new FindPersonThread(this, searchTerms, candidateSet, startIndex, endIndex);
Thread t = new Thread(fpt);
threadArray.add(t);
t.start();
}
for (Thread t : threadArray) {