On Thu, 31 Mar 2005 21:17:39 -0500, [EMAIL PROTECTED] (MrJoltCola) wrote: > At 05:57 PM 3/31/2005, Nigel Sandever wrote: > >Is Parrot bytecode reentrant? > > Yes. > > >That is, if I want to have two instances of a class in each of two > >threads, will > >the bytecode for the class need to be loaded twice? > > No, just once. > > >Also, will it be possible to pass objects (handles/references) between > >threads? > > Yes, otherwise threads are no more useful than processes. > > -Melvin > Thanks. Another question arises.
When a sub that closes over a variable my $closure = 0; sub do_something { return $closure++: } is called from two threads, do the threads share a single closure or each get their own separate closure? njs