摘要 |
PURPOSE: An apparatus for processing IPC(Inter-Processor Communication) in a UNIX operating system is provided to integrate message polling structures to prevent wasteful system resources, when the UNIX operating system performs the IPC with an existing exchange, or to increase a reciprocal independence between upper applications and an IPM(Inter Process Message) service package for relaying a lower IPC, so that the upper applications can correct applications regardless of a process of the IPM service package. CONSTITUTION: An IPM(Inter Process Message) service package(20) manages polling functions and distribution functions of registered messages. Upper applications(18a,18b,18c) perform the polling functions relating to the registered messages. If the upper applications(18a,18b,18c) register the messages, the IPM service package(20) calls functions registered with the messages to process the upper applications(18a,18b,18c). When the messages arrive, the upper applications(18a,18b,18c) register the messages in the IPM service package(20) with the called functions. The IPM service package(20) performs a polling to perceive whether the registered messages exist. If the messages arrive, the IPM service package(20) calls the upper applications(18a,18b,18c) for the registered functions. The IPM service package(20) uses a callback pattern, to distribute the received messages to registered IPM clients(the upper applications(18a,18b,18c)). The IPM clients use message IDs for registration. If IDs of the registered messages exist among the received messages, the IPM service package(20) calls a registered callback.
|