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

Re: thread safe

Thread Previous | Thread Next
From:
A . Bergman
Date:
February 2, 2003 02:01
Subject:
Re: thread safe
Message ID:
0A89C8D8-3633-11D7-85CC-003065D64CBE@nanisky.com

On fredag, jan 31, 2003, at 19:33 Europe/Stockholm, 
<willis@silverorb.net> 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 
want
and run them in pararel in different threads.

Arthur


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About