Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: How do I used a threaded subroutine inside a perl object

by adamcpfeiffer (Novice)
on Jul 03, 2013 at 16:37 UTC ( [id://1042244]=note: print w/replies, xml ) Need Help??


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.
  • Comment on Re^4: How do I used a threaded subroutine inside a perl object

Replies are listed 'Best First'.
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1042244]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found