PureMVC Architects Lounge

PureMVC Manifold => MultiCore Version => Topic started by: fsilvestrim on March 21, 2013, 01:27:00



Title: Multi thread via AS3 Workers?
Post by: fsilvestrim on March 21, 2013, 01:27:00
Hello,

I have looked all over the internet and I didn't find a version of the as3 multicore framework that supports multi thread via AS3 Workers and Mutex mechanism.
 
Has somebody seen this?

Thanks in advance


Title: Re: Multi thread via AS3 Workers?
Post by: puremvc on March 21, 2013, 01:38:06
Why should a separate version of the framework be required? Seems as if you could create separate multicore modules, and run them as workers. You may have to mediate each worker in the shell. I confess I haven't tried it, but I don't imagine the framework itself has to change.

Feedback?

-=Cliff>


Title: Re: Multi thread via AS3 Workers?
Post by: puremvc on March 21, 2013, 02:08:45
Also, since workers are not supported on mobile AIR platforms[1], you wouldn't want the framework tied to them. Otherwise, you'd write an app for web and desktop but then not be able to use it on mobile. While UI's usually change between these platforms, business and domain logic is generally reusable if best practices are followed.

-=Cliff>

1) Worker AS3 Doc
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/Worker.html
"Note: The use of workers for concurrency is only supported in Flash Player and in AIR on desktop platforms. Concurrency is not supported on mobile AIR platforms. You can use the static isSupported property to check whether concurrency is supported before attempting to use it."