On Mon, Nov 18, 2002 at 08:22:45AM +1100, Damian Conway wrote:
> Luke Palmer asked:
> 
> > Of course, there will be a pragma or something to instruct it to
> > operate serially, yes?
> 
> I doubt it. Unless there's a pragma to instruct threads to operate
> serially.
> 
> In any case, I'm not sure what such a pragma would buy you. The
> ordering of evaluation would still be inherently unordered.

If parrot had cheap threading within the same perl interpreter, then it
might buy you something. Without the pragma, there is no reason why parrot
should not use multiple threads (on a SMP machine) to evaluate the parts of
a junction in parallel, so you'd have to have your perl level code capable
of being re-entrant. With the pragma, you could at least specify that you
want one thing to finish before the next starts, even though there is still
no fixed order in which they take place.

But I'm not sure if parrot is going to give the perl interpreter cheap
threading. (Does the async IO mean that one parrot interpreter could
internally co-operatively thread perl in some cases?)

Nicholas Clark

Reply via email to