in reply to Re^3: How do I used a threaded subroutine inside a perl object in thread How do I used a threaded subroutine inside a perl object
Thanks for the information, it run threaded with the syntax you gave me. As you said, the outcome wasn't what I expect. Also, based on all of the other research I have done on threads in perl, most folks say it isn't worth using threads since they aren't lightweight. I will skip using threads and look for other ways to decrease the time it takes for the object to initialize.
Re^5: How do I used a threaded subroutine inside a perl object
by BrowserUk (Patriarch) on Jul 03, 2013 at 18:00 UTC
|
Also, based on all of the other research I have done on threads in perl, most folks say it isn't worth using threads since they aren't lightweight.
Why do they have to be lightweight?
If you would describe the wider picture -- eg. post the full code -- then what you want can almost certainly be solved using threads.
But if you want to believe people who've no real knowledge of threads and do things the hard way; I wish you the very best of luck.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] |
|