INTERPROCESS COMMUNICATION USING A SINGLE SEMAPHORE
First Claim
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 accessible by the target processes and identifying a specific target process;
incrementing the semaphore by the number of target processes, thereby unblocking the target processes and allowing them to check 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 the target processes.
1 Assignment
0 Petitions
Accused Products
Abstract
A method to enable communication between software processes includes initiating a plurality of processes, the processes including both attachment processes and target processes. A single semaphore is created and initialized for use by the plurality of processes such that each of the target processes wait on the semaphore. An attachment process writes a message file, identifying a specific target process, to a location accessible by the target processes. The attachment process then increments the semaphore by the number of target processes, thereby unblocking the target processes and allowing them to check the message file. When the specific target process determines that the message file is intended for that target, a connection is established between the attachment process and the specific target process. The attachment process then decrements the semaphore to zero to block the target processes. A corresponding computer program product and apparatus are also disclosed herein.
9 Citations
8 Claims
-
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 accessible by the target processes and identifying a specific target process; incrementing the semaphore by the number of target processes, thereby unblocking the target processes and allowing them to check 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 the target processes. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
Specification