in reply to Thread::Queue locking question

I applied all suggested changes at once. The problem seems to be resolved. I've been beating the system up with changes and the program keeps right up. I believe it was adding the usleep 50, but I'm not sure. I want to thank you all for the input. I learned a lot from this post.