<?xml version="1.0" encoding="windows-1252"?>
<node id="929102" title="Re^2: Win32, fork and XS globals" created="2011-10-02 01:38:59" updated="2011-10-02 01:38:59">
<type id="11">
note</type>
<author id="381608">
ikegami</author>
<data>
<field name="doctext">
&lt;p&gt;That perlmod link is not terribly useful. For instructions on creating per-interpreter variables, see "Safely Storing Static Data in XS" in [doc://perlxs]. It even includes an example.

&lt;p&gt;The mechanism allows each interpreter in a process to have their own copies of variables. This is useful not only when threads are involved, but in all instances when a process has multiple Perl interpreters (e.g. mod_perl?).
</field>
<field name="root_node">
929097</field>
<field name="parent_node">
929101</field>
</data>
</node>
