<?xml version="1.0" encoding="windows-1252"?>
<node id="45487" title="Accessing one perl sub by multiple threads.." created="2000-12-07 11:33:10" updated="2005-08-13 04:19:02">
<type id="115">
perlquestion</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
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.</field>
<field name="reputation">
-2</field>
</data>
</node>
