in reply to Multithreading in Perl

I advise that you not try to use threads under Perl.

See Threads vs Forking (Java vs Perl) for details.