Feb-13-2020, 02:16 PM
Quote:Something isn't right with the implementation of the multiprocessing, but I don't think there's any issue with the functions.
No :-D
The implementation is well tested.
In your modules, you call the function
beginSending()
and in the other beginRec()
.Don't do this. Remove the call from both modules or use the boilerpate code:
... if __name__ == '__main__': beginRec()If you use this code, the function
beginRec()
is not called, when:- The module was imported
- Multiprocessing loads the module
Currently you call
beginRec()
twice and beginSending()
twice.Once the modules were imported and one time when Multiprocessing calls the target functions.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!