×

Interprocess communication using a single semaphore

  • US 8,429,144 B2
  • Filed: 07/16/2010
  • Issued: 04/23/2013
  • Est. Priority Date: 07/16/2010
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer program product to enable communication between a plurality of processes, the computer program product comprising a non-transitory computer readable storage medium having computer-usable program code embodied therein, the computer-usable program code comprising:

  • computer-usable program code to initiate a plurality of processes, the plurality of processes comprising both attachment processes and target processes;

    computer-usable program code to create and initialize a single semaphore for use by the plurality of processes, such that each of the target processes are initially blocked by the semaphore;

    computer-usable program code to write a message file to a location readable by each of the target processes and identifying a specific target process with which an attachment process wants to establish a connection;

    computer-usable program code to increment the semaphore by the number of target processes, thereby unblocking each of the target processes and allowing each of the target processes to read the message file and thereby determine if it is the target process identified in the message file;

    computer-usable program code to establish a connection between the attachment process and the specific target process identified in the message file; and

    computer-usable program code to decrement the semaphore to zero, thereby blocking each of the target processes.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×