When I use the multiprocessing in the python, I always meet the trouble of memory issue.Below is the code that I wrote: