Reputation: 1
i want to know if i can use threading model like posix or any else in flex, i am a beginer of flex and i want to know if i can use threads in it for multitasking.
Upvotes: 0
Views: 2491
Reputation: 5554
You can use the concept of Green Threads to provide multi threading in your Flex app.
Check this link for a sample implementation of Green Threads.
You would basically have to split your processing into chunks and use the main thread to run your thread along with your normal app.
Upvotes: 0
Reputation: 21
http://cookbooks.adobe.com/post_Is_multi_threading_possible_in_Flash_or_ActionScri-12026.html
this is official from adobe
Upvotes: 0
Reputation: 688
Flex and ActionScript are single-threaded, so there's no threading model you can use.
Upvotes: 0
Reputation: 393
No, your Flash/Flex code will only run on a single thread, but you can achieve a lot through the asynchronous/event model.
Upvotes: 1