To thread or not to thread

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

To thread or not to thread

AJBell
Hello all,

I have written a plugin that processes and measures a batch of images. I would like to process between 1 and 4 sets of images serially, i.e. process set of images number 1, then process set of images number 2 ...etc.

Whilst I can launch the plugin manually for each set of images, because of the size of the image sets, it would be preferable to walk away and leave the computer to it, processing all the image sets. Is there a simple way this can be done?

A for loop would just try and run all images sets simulataneously which would cause problems with the results table if nothing else. I've had a quick look at threads, and flags, but wasn't sure if that was the right path to go down. Any advice would be appreciated.

Andrew