The multiprocessing module offers a mechanism to do that. Print("From reader:%s"%messageQueue.get())ĬhildProcess0 = multiprocessing.Process(target=procFunction0, args=(messageQueue,))ĬhildProcess1 = multiprocessing.Process(target=procFunction1, args=(messageQueue,))ĬhildProcess2 = multiprocessing. When using multiple processes, the issue that comes up is how to exchange data between the workers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |