example When only thr1 was enabled thr2 was commented out:
tstsrv:/home/aaron # ./collect_files_threaded.pl -u aaron | wc -l 3948 When only thr2 was enabled thr1 was commented out: tstsrv:/home/aaron # ./collect_files_threaded.pl -u aaron | wc -l 1436 When both were enabled (below code): tstsrv:/home/aaron # ./collect_files_threaded.pl -u aaron | wc -l 1753 Each thread updates a global variable. I got the code generated by find2perl command to create the function findFiles.