Python Forum
code pattern for process communication
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
code pattern for process communication
#1
many programs, especially GUI apps, when a 2nd one is started, tell the 1st one to open the window and the 2nd on exits.  i am looking for a suggested code pattern for this kind of communication setup where the process that is the 2nd instance of an executable can find and set up brief communications with the 1st instance of the same executable.  in particular, i am curious how to avoid finding a process of a different executable that is also being interpreted by python.  in a typical GUI case, this communication would send what X display the 2nd instance was started on and any specified parameters to the 1st instance.

this is not a case of existing code that fails because things have not reached that level yet, so there is no (failing) code to show.  i am still thinking through many potential projects and looking for a pattern for this.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
code pattern for process communication - by Skaperen - Sep-07-2017, 12:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  RPi and smartphone Bluetooth communication GigiG 0 487 Mar-18-2025, 09:54 AM
Last Post: GigiG
  How can I make this code more efficient and process faster? steven_ximen 0 450 Dec-17-2024, 04:27 PM
Last Post: steven_ximen
  Process finished with exit code 137 (interrupted by signal 9: SIGKILL) erdemath 2 12,579 Apr-18-2022, 08:40 PM
Last Post: erdemath
  Speed up code with second process help samuelbachorik 0 1,936 Sep-04-2021, 09:31 AM
Last Post: samuelbachorik
  Code taking too much time to process ErPipex 11 7,549 Nov-16-2020, 09:42 AM
Last Post: DeaD_EyE
  process finished with exit code -1073741819 (0xC0000005) GMCobraz 8 7,978 Sep-01-2020, 08:19 AM
Last Post: GMCobraz
  packet radio communication EmpireAndrew 1 2,980 Nov-01-2019, 06:35 PM
Last Post: micseydel
  WiFi communication Milad 2 3,233 Sep-07-2019, 11:53 AM
Last Post: ndc85430
  How to sharing object between multiple process from main process using Pipe Subrata 1 4,565 Sep-03-2019, 09:49 PM
Last Post: woooee
  Simple inter-process communication: Switching from Perl to Python Pappy 1 3,686 May-10-2019, 12:29 AM
Last Post: Pappy

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020