Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Accessing one perl sub by multiple threads..

by Anonymous Monk
on Dec 07, 2000 at 16:33 UTC ( [id://45487]=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
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://45487]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found