[AstroPy] A question about multiprocessing

Jean-Baptiste Marquette marquett at iap.fr
Fri Nov 4 12:05:24 EDT 2011


Le 4 nov. 2011 à 16:51, Chris Sontag a écrit :

> I'm not sure this code is doing what you want.  Each of NPROC subprocesses runs CatDistort(), which does some processing on EACH image in your queue.  So each image actually gets processed NPROC times (by every subprocess), is that your intention?  If not, send one image as the value for the args of CatDistort().

Hi Chris,

No, each image is processed once on one of my 4 processors which are able to manage the queue in such a way. I know that because an xterm with label and given position on the screen is attached to each processor. Thus the queue feeds the available processors sequentially.

Cheers
JB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20111104/56de76d5/attachment.html>


More information about the AstroPy mailing list