×

Interprocess communication using a single semaphore

  • US 8,527,456 B2
  • Filed: 03/28/2012
  • Issued: 09/03/2013
  • Est. Priority Date: 07/16/2010
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for enabling communication between a plurality of processes, the method comprising:

  • initiating a plurality of processes, the plurality of processes comprising both attachment processes and target processes;

    creating and initializing a single semaphore for use by the plurality of processes, such that each of the target processes are initially blocked by the semaphore;

    writing, by an attachment process, a message file to a location readable by each of the target processes and identifying a specific target process with which the attachment process wants to establish a connection;

    incrementing, by the attachment process, 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;

    establishing a connection between the attachment process and the specific target process identified in the message file; and

    decrementing the semaphore to zero, thereby blocking each of the target processes.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×