Re: [flexcoders] Re: Is Flash a single thread application?
I can't find the document explaining this, but I've certainly seen it somewhere before (perhaps at a conference?)... the basics is that the Flash Player is definitely multi-threaded, its just the ActionScript code that's single threaded (probably what the original poster got the impression from). The Flash Player has a rendering thread, a networking thread (well, probably multiple networking threads like a web browser, one per connection), and the VM thread. Troy. On 1/23/07, parkerwhirlow [EMAIL PROTECTED] wrote: Events are not fired concurrently. They are fired in order of their listener priority. See the following documentation on addEventListener function http://livedocs.macromedia.com/flex/2/langref/flash/events/EventDispatcher.html#addEventListener () By default, priority is '0' for user added events, so they will fire in the order added. There's some constants defined in the EventPriority class that the framework uses when adding event listeners for things such as Bindings, Effects, etc. Hope this helps. PW --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Cameron Bahan [EMAIL PROTECTED] wrote: Flash does seems to be single-threaded. However, one should be careful as events are fired concurrently. I have run into a few issues regarding concurrency and shared data. So far the only solutions that I have heard is to write a custom locker class using a boolean lock. Has anyone else experienced this? How have you solved it? CS Bahan Lead Software Engineer On Jan 23, 2007, at 4:31 AM, saha.prasanta wrote: Hi, I've read in some forum that Flash is a single thread application. I tried to find some document supporting that statement, But I couldn't find any document by Adobe or Macromedia regarding that. Could you plase help me by forwarding the of such article. I need that as a proof for one of my project. Warm regards, Prasanta Saha, Flash Developer, Hyderabad, Indaia
[flexcoders] Re: Is Flash a single thread application?
I don't know of any specific documents, but just to clarify, in addition to Abdul's comment: Flash Player is single threaded except in the case of remote calls. Remote calls are always asynchronous by way of spinning off a separate thread. Not sure about any limits on the number of threads that can be opened in that fashion. HTH, Ben --- In flexcoders@yahoogroups.com, saha.prasanta [EMAIL PROTECTED] wrote: Hi, I've read in some forum that Flash is a single thread application. I tried to find some document supporting that statement, But I couldn't find any document by Adobe or Macromedia regarding that. Could you plase help me by forwarding the of such article. I need that as a proof for one of my project. Warm regards, Prasanta Saha, Flash Developer, Hyderabad, Indaia
Re: [flexcoders] Re: Is Flash a single thread application?
So maybe this would be the area causing some of us to get Connection already in use errors in the flash player when we have more than one flex application open? Shan ben.clinkinbeard wrote: I don't know of any specific documents, but just to clarify, in addition to Abdul's comment: Flash Player is single threaded except in the case of remote calls. Remote calls are always asynchronous by way of spinning off a separate thread. Not sure about any limits on the number of threads that can be opened in that fashion. HTH, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, saha.prasanta [EMAIL PROTECTED] wrote: Hi, I've read in some forum that Flash is a single thread application. I tried to find some document supporting that statement, But I couldn't find any document by Adobe or Macromedia regarding that. Could you plase help me by forwarding the of such article. I need that as a proof for one of my project. Warm regards, Prasanta Saha, Flash Developer, Hyderabad, Indaia
[flexcoders] Re: Is Flash a single thread application?
Events are not fired concurrently. They are fired in order of their listener priority. See the following documentation on addEventListener function http://livedocs.macromedia.com/flex/2/langref/flash/events/EventDispatcher.html#addEventListener() By default, priority is '0' for user added events, so they will fire in the order added. There's some constants defined in the EventPriority class that the framework uses when adding event listeners for things such as Bindings, Effects, etc. Hope this helps. PW --- In flexcoders@yahoogroups.com, Cameron Bahan [EMAIL PROTECTED] wrote: Flash does seems to be single-threaded. However, one should be careful as events are fired concurrently. I have run into a few issues regarding concurrency and shared data. So far the only solutions that I have heard is to write a custom locker class using a boolean lock. Has anyone else experienced this? How have you solved it? CS Bahan Lead Software Engineer On Jan 23, 2007, at 4:31 AM, saha.prasanta wrote: Hi, I've read in some forum that Flash is a single thread application. I tried to find some document supporting that statement, But I couldn't find any document by Adobe or Macromedia regarding that. Could you plase help me by forwarding the of such article. I need that as a proof for one of my project. Warm regards, Prasanta Saha, Flash Developer, Hyderabad, Indaia