Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2008-01-30
HUAWEI TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0016] However, since this technical solution also adopts a queue method for inter-thread communication, it causes unnecessary memory copying, increases the overhead of accessing the queue, and greatly reduces the efficiency of inter-thread communication.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Package realizing method and system
  • Package realizing method and system
  • Package realizing method and system

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a module realization method and the system. The method includes the process: the transferring module sends the serving message to the message system which the message includes the transferring course mark, the transferred module mark and the transferred course mark; if the transferring course mark is different to the transferred course mark, the message will be stored in the EMS memory that the course can visit. Or the message will be stored in the EMS memory that the course supports. The message system informs the transferred module provide the service; the transferred module can get the message according to the notice and achieve the module function. The module is important in the thread model and the course model.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a method and system for realizing components. Background technique [0002] A component is a reusable object or program that performs a specific function and is designed to use other components and applications. As the scale of software becomes larger and larger, the component-based development method is also more and more widely used. Using componentized software development methods can not only greatly reduce the repetition of software function development, but also greatly increase the flexibility of software development. [0003] The thread model and the process model are two commonly used software operation models at present. Since the two models have their own advantages, each has its own application occasions. Table 1 shows the feature comparison table of thread model and process model: [0004] project threading model process model Scheduling o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/54G06F9/46
Inventor 饶俊杨明磊裘洪国
Owner HUAWEI TECH CO LTD