Hi x-lours,
Thanks for this suggestion.
However, isn't the use semaphore is more towards synchronization of threads (or processes)? I am using Thread::Queue to sync and communicate between threads.
And, so synchronization and communication is not an issue.
My main worry is about this behavior referred on this page:
"It means that every time you start a thread all data structures are copied to the new thread. And when I say all, I mean all. This e.g. includes package stashes, global variables, lexicals in scope. Everything!"
Thanks