Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Accessing one perl sub by multiple threads..

by Anonymous Monk
on Dec 07, 2000 at 16:36 UTC ( #45488=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I've a doubt on accesssing one perl subroutine by multiple threads. Let us say two threads (using perlcall APIs) access a perl sub named X. First thread invoked X. while processing, First thread is preempted and the Second thread starts executing and accessing the same sub X. My question is, if the First thread continue execution from where it was preempted by the Second thread?. Is perl subroutine thread safe. We are getting some strange results. If you have answers for the same please let us know. Please contact me at poorna@india.hp.com Thanks, Poornachandran SM.

Comment on Accessing one perl sub by multiple threads..

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2014-09-23 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (219 votes), past polls