Learn how to compute huge information the use of concurrency

Let’s think we need to paintings on a big record and it calls for some computations on it for a now not negligible time. Those computations can also be finished in combination and not using a particular order ( 1st – Seventh-Third…) so I introduce concurrency to scale back the whole time.

For instance, I’ve already learn a big record and its content material has been saved inside of a `Checklist<String>` .

Now I’ve to make some paintings on each and every saved string, that is the time for `Thread` to assist us.

The activity shall be processed via 3 `Threads` that paintings in combination at the checklist the use of indexes (1st thread -> 0 to 99, second 100-199 and remaining 200-299).

That is how I might organise the paintings, what about you what do you assume?

Since this is not about operating one thing on background I do not believe Isolate can assist, however let me know.

P.S.: If anyone can hyperlink me the dart legit thread library please, I will be able to’t in finding it.



View Reddit via _seeking_answersView Supply

You may also like...

WP2Social Auto Publish Powered By : XYZScripts.com