Yes, Gordon and Alex have agreed with this, that async methods are handled
in different threads.

 

But the original poster's concern was regarding developer code within the
AVM: 

"If A' starts executing before B', will it run to completion before B'
starts executing, or could their execution be interleaved?"

 

We are just reassuring the op that no, this (interleaving) will not occur.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of mike_slinn
Sent: Saturday, August 29, 2009 4:22 AM
To: [email protected]
Subject: [flexcoders] Re: Race conditions when event handlers triggered from
different targets

 

  

> Yes, the Player has multiple threads. But the ActionScript Virtual Machine
executes in only one of them.

According to the Flash Player engineers that I have spoken to, some
ActionScript method calls are handed off to other threads, for example
URLLoader.load(). It would be helpful to read a more detailed and complete
explanation of the Flash Player's threading model, and how functionality
exposed by ActionScript VM is scheduled.

Mike



Reply via email to