Invention Grant
- Patent Title: Interprocess communication using a single semaphore
- Patent Title (中): 使用单个信号量进行进程间通信
-
Application No.: US12838341Application Date: 2010-07-16
-
Publication No.: US08429144B2Publication Date: 2013-04-23
- Inventor: Peter Douglas Bain
- Applicant: Peter Douglas Bain
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agency: Nelson and Nelson
- Agent Daniel P. Nelson; Alexis V. Nelson
- Main IPC: G06F7/00
- IPC: G06F7/00 ; G06F17/30

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.
Public/Granted literature
- US20120016855A1 INTERPROCESS COMMUNICATION USING A SINGLE SEMAPHORE Public/Granted day:2012-01-19
Information query