Feb-11-2020, 09:06 PM
Having trouble getting multiprocessing to work as I had hoped it would. Ideally, I need these 2 processed to run at the same time. They could even open up their own separate console windows and run completely independently, as long as they both start up. Is multiprocessing what I'm looking for?
EDIT:
If anybody would like to have a look, these are the sender and receiver modules. They work when they're started on their own in separate shells, but not when started from this 'main.py' program when I try to introduce multiprocessing.
Sender
Receiver
from Logger import Logger from s3nd import beginSending from r3ceive import beginRec import multiprocessing def send(): beginSending() def receive(): beginRec() if __name__ == "__main__": sender = multiprocessing.Process(name='sender', target=send) receiver = multiprocessing.Process(name='receiver', target=receive) sender.start() receiver.start()Basically, only the second process starts (receiver)... what's going on that my first process gets skipped over?
EDIT:
If anybody would like to have a look, these are the sender and receiver modules. They work when they're started on their own in separate shells, but not when started from this 'main.py' program when I try to introduce multiprocessing.
Sender
Receiver