in reply to How to make perl subroutines Thread safe?.
Given the current state of Perl if that isn't enough I would suggest using fork instead. You can find a good discussion of that at Threads vs Forking (Java vs Perl).