I'm new to inter-process communication and was looking for input and guidance about best way to achieve the following: I have a function that convert an image from one format to another and I want to do batch images conversions using multiple processes.
- I have 1000 images that i want to convert from one format to another
- I create 6 child processes and wanted to send them the image file name to process: one child one image to convert.
Should I simply create 6 message queue and send one to each of the process or it's better to create one message queue storing a vector of image names and send the vector to the 6 child process ?
How can I communicate back the result of one child process to the parent process ? And how i can keep sending work to the process until i'm done with the 1000 files ?
I'm using C++, Windows and learning Boost.
Thanks
Jeff