If processing an image takes longer than reading N images from the disk, then processing multiple images concurrently is a win. Figure you can read a 2 MB file from disk in under 100 ms (including seek time). Figure one second to read 8 images into memory.
If processing an image takes longer than reading N images from the disk, then processing multiple images concurrently is a win. Figure you can read a 2 MB file from disk in under 100 ms (including seek time). Figure one second to read 8 images into memory.So if your image processing takes more than a second per image, I/O isn't a problem.
Do it concurrently. You can scale that down if you need to (i.e. If processing takes 1/2 second, then you're probably best off with only 4 concurrent images).
You should be able to test this fairly quickly: write a program that randomly reads images off the disk, and calculate the average time to open, read, and close the file. Also write a program that processes a sample of the images and compute the average processing time. Those numbers should tell you whether or not concurrent processing will be helpful.
Very nice answer! Exactly the answer I was waiting for! :) – Martyn Hopkins Apr 26 at 23:39.
I think the answer is, 'It Depends'. I'd try running the application with some type of Performance Monitoring (even the one in Task Manager) and see how high the CPU gets. If the CPU is maxing out; it would improve performance to run it in paralell.
If not, the disk is the bottleneck and without some other changes, you probably wouldn't get much (if any) gain.
Problem is that the manager didn't give a formal "GO" yet for using Parallel Tasks. I'm currently in the process of investigating this. – Martyn Hopkins Apr 26 at 22:21.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.