start function in new process

wongjoekmeu at yahoo.com wongjoekmeu at yahoo.com
Fri Mar 5 14:45:53 EST 2010


On 5 mrt, 20:40, "Martin P. Hellwig" <martin.hell... at dcuktec.org>
wrote:
> On 03/05/10 19:21, wongjoek... at yahoo.com wrote:
> <cut os.fork problem>
> Any specific reason why threading.Thread or multiprocessing is not
> suitable to solve your problem?
>
> --
> mph

Because I got a memory leak in my function f(). It uses scipy, numpy,
pylab, and I am not planning to solve the memory leak because its too
complicated. So I thought of just calling the function then when it is
finished the process is gone and all memory is released. With
threading I don't think I would solve this problem. I am not sure
though.



More information about the Python-list mailing list