Skip to content

Tag: multiprocessing

patch object spawned in sub-processs

I am using multiprocessing package for crating sub-processes. I need to handle exceptions from sub-process. catch, report, terminate and re-spawn sub-process. I struggle to create test for it. I would like to patch object which represent my sub-process and raise exception to see if handling is correct. But it…

Using multiprocessing on Image processing

I’m trying to speed up my processing of a PIL.Image, where I divide the image into small parts, search for the most similar image inside a database and then replace the original small part of the image with this found image. This is the described function: Now I wanted to parallelize this function, sinc…