Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 code pattern for process communication
#11
The parent process could create a small file in a well known location (~/.my-program/process.pid, perhaps) at startup, where it writes it's own pid, so any spawning process can find it easily.  Or, you could just spam the signal to all python processes running, and hope the other ones just ignore it :p
Quote
#12
memory mapped file object might be a help here. It can interchange data between parent and child processes.

I also found this list of python native modules for helping interprocess communication but didn't understand half of the modules.
Quote
#13
there are a lot of options when two processes want communicate with each other.  but the issue for me is how to find that other process first.  my concern is that when looking by name, the name of what was executed might be just "python".
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  How to sharing object between multiple process from main process using Pipe Subrata 1 402 Sep-03-2019, 09:49 PM
Last Post: woooee
  Simple inter-process communication: Switching from Perl to Python Pappy 1 359 May-10-2019, 12:29 AM
Last Post: Pappy
  Process finished with exit code -107374819 (0xC0000375) mrazko 2 566 Apr-05-2019, 12:46 PM
Last Post: mrazko
  code pattern to test if list has all the same Skaperen 5 916 Jul-25-2018, 06:09 AM
Last Post: buran

Forum Jump:


Users browsing this thread: 1 Guest(s)