I need a little help with a multi-threading issue.
I have an app that fetches a few feeds and display the data on screen. Each feed gets fetched in its own thread and then when its done, they all call the same handler which then calls methods to update the display. But sometimes some of the data doesn't get shown properly.
I reckon it may be because the threads might finish at the same time and then the handler is being called at about the same time. Is this something that could cause the issue? If so, how do I prioritise the threads, so that they can all run at the same time (fetching the data quicker) and then call the handler in order?
Or have I completely missed the point. I am a noob when it comes to threading. So may be doing this all wrong...
Thanks in advance