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

Accessing one perl sub by multiple threads..

by Anonymous Monk
on Dec 07, 2000 at 16:33 UTC ( #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 Thanks, Poornachandran SM.

Comment on Accessing one perl sub by multiple threads..

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2015-11-30 12:34 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (770 votes), past polls