Package realizing method and system
An implementation method and system implementation technology, applied in the computer field, can solve problems such as increased access queue overhead, memory copy, and reduced communication efficiency between threads, and achieve the effects of improving reusability, speeding up efficiency, and improving communication efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] Fig. 1 shows the schematic flow chart of the method of the present embodiment, as shown in the figure: the method comprises the following steps:
[0068] Step S101: Set the component to work in a message-driven manner.
[0069] The message-driven method is specifically that if a component wants to use components of other threads or other processes to provide services, then this component sends a request message to the message system. After the component sends the request message, it can continue to perform other tasks. The component that provides the service According to the request message, execute the corresponding function, and return a response message to the component that sends the request message, and the component that sends the request message processes the execution result after receiving the response message returned by the component that provides the service.
[0070] Step S102: the component registers component information with the message system.
[0071]...
Embodiment 2
[0092] Fig. 2 shows the schematic flow chart of the method of the present embodiment, as shown in the figure: the method comprises the following steps:
[0093] Step S201: Set the component to work in a message-driven manner.
[0094] Step S202: The component registers component information with the message system.
[0095] Step S203: the calling component sends an asynchronous message to the message system to request the called component to provide services.
[0096] The above steps are the same as steps S101, S102, and S103 in Embodiment 1.
[0097] Step S204: If the identifiers of the calling process and the called process carried in the message are the same, execute step S205; otherwise, execute step S206.
[0098] Step S205: Store the message in the memory in the form of shared memory.
[0099] If the current call is an inter-process call, the message system stores the message in the system preset memory in the form of shared memory.
[0100] The memory of the shared ...
Embodiment 3
[0111] FIG. 3 is a schematic structural diagram of the message system of this embodiment. As shown in the figure, the message system 300:
[0112] The component registration unit 302 is connected to the component storage of the storage component, and is used for the component to register the component information with the message system, including the component identification of the component, the message processing entry function of the component, the process or thread number corresponding to the component, and the process corresponding to the component Additional information about the component such as ID or thread ID. The messaging system identifies components by their component IDs.
[0113] The message receiving unit 301 is connected to the component memory, and is used for receiving the message sent by the component to the message system.
[0114] When a process or thread in a certain component needs to call other components or a process or thread in this component, it ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 