On Wed, 11 Aug 2010, Henning Michael Møller Just wrote:
> Lyle wrote:
>> I'm very interested in how it achieves this complete clean up? Is it
>> within Perl itself?
>
> Ah, cleanup is perhaps the wrong word here. Jan Dubois will obviously
> be able to give the correct answer. I *think* what happens is that
> PerlIS has an thread ready for an interpreter so that when it needs to
> process a script a new interpreter is started up; it is then discarded
> at the end of execution.

The threads are managed by IIS, PerlIS is just an ISAPI plugin (DLL)
that is loaded by IIS into the process that hosts these threads.

Note that you still must make sure all modules used under PerlIS are
thread-safe because the threads for one application pool all run within
a single process. So if you have a Perl module with XS code that stores
information in a static C variable, then you still have a race condition
when 2 requests are processed in parallel.

Cheers,
-Jan

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to