Cross-process data transmission method, device and network equipment

2010 
The invention discloses a cross-process data transmission method, a cross-process data transmission device and network equipment. The method comprises the following steps of: selecting a shared memory pool suitable for storing data to be transmitted according to the size of the data to be transmitted in a first process and the sizes of shared memory objects contained in a shared memory area in each shared memory pool, wherein the sizes of the shared memory objects contained in each shared memory area in each shared memory pool are the same; selecting a shared memory area in an available state from the selected memory pool, storing the data to be transmitted in an idle shared memory object, and marking the shared memory object in an occupied state; and determining a pointer address of the data to be transmitted from the shared memory area in a second process according to the offset address of the data to be transmitted in the first process. The proper shared memory object in the shared memory pool is selected according to the size of the data so as to improve the utilization rate of the memory, avoid frequency creation and deletion of the shared memory and improve the performance of a system.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []