in reply to Threading in perl - using Locks

There is a nice explantation in the Tutorials section of this site, does that help you?

Also try to Super Search for lock or locking, it has been discussed here many times before.