in reply to Multithreading in perl

You also need to do some reading about exactly how Perl implements threading ... what threading "means to Perl," so to speak.