I have a python script A and a python script B.
Both of them are running independently. I want, as soon as script B finishes execution, it should send a message to script A, "B Done".
A simple message could have been sent by sockets et al. However, script A is doing some work of its own. How do I make A listen for B without halting the execution of A?
Any help is much appreciated!
EDIT:
B is entirely CPU bound - calculations. A is a mix of I/O bound and CPU-bound. The user is intervening at irregular intervals with inputs (keylogger like setup) where I/O is obviously the keystrokes, and CPU bound task is some calculations being performed on the entered key.