develooper Front page | perl.perl5.porters | Postings from February 2003

Re: thread safe

Thread Previous | Thread Next
A . Bergman
February 2, 2003 02:01
Re: thread safe
Message ID:

On fredag, jan 31, 2003, at 19:33 Europe/Stockholm, 
<> wrote:

> I am really new here so bear with me, please.
> Has anyone looked at making perl thread safe to embed?  I would like 
> to be
> able to launch an interpreter per thread from a C program (without 
> context
> switching).  Has anyone researched this?
> --Brandon

This is entirely possible, compile your perl with -Dusethreads and
you will be able to create as many perl_create PerlInterpreter* as you 
and run them in pararel in different threads.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About