I have to edit huge bitmap files, so I want to use all cores of my device to speed up the process. I thought it would be a good solution to:
- Count the number of available cores
- Split the image into [numberofcores] parts
- For each core create a new thread and let this thread handle one part of the image
How do I make sure all threads are done before I continue with other tasks, like saving the picture or return a message that the bitmap has been processed completely?