kashif
kashif

Reputation: 1

multithreading in adobe flex

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

Answers (4)

midhunhk
midhunhk

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

ettore
ettore

Reputation: 688

Flex and ActionScript are single-threaded, so there's no threading model you can use.

Upvotes: 0

Karthik
Karthik

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

Related Questions