Data Writing Method, Data Reading Method, Apparatus, Electronic Device, and Storage Medium

    公开(公告)号:US20250147876A1

    公开(公告)日:2025-05-08

    申请号:US19013530

    申请日:2025-01-08

    Abstract: A data writing method includes determining first data to be written into a circular storage queue; obtaining a global write pointer of the circular storage queue, where the circular storage queue includes a plurality of storage areas, each storage area includes a plurality of subareas, and the global write pointer points to a first storage area of the plurality of storage areas; obtaining a first write pointer of the first storage area, and determining a size of allocated space in the first storage area based on the first write pointer of the first storage area; if the size of the allocated space in the first storage area is less than a size of space of the first storage area, performing an FAA operation on the first storage area, to allocate a first subarea in the first storage area; and writing the first data into the first subarea.

    INTER-PROCESS COMMUNICATION METHOD AND APPARATUS

    公开(公告)号:US20230168953A1

    公开(公告)日:2023-06-01

    申请号:US18160671

    申请日:2023-01-27

    CPC classification number: G06F9/544 G06F3/064 G06F3/0604 G06F3/0673

    Abstract: Example inter-process communication methods and apparatus are descried. One example method includes writing, based on a calling convention, communication information into a register group of a first execution entity of a sending process. First data of target data is written into a stack memory of the first execution entity. The communication information includes a first value indicating a data amount of the first data, and the target data is data to be sent by the sending process to a first receiving process. Information in the register group of the first execution entity is replicated to a context of the first execution entity. The first data from the stack memory of the first execution entity is replicated to a stack memory of a second execution entity of the first receiving process based on the first value in the context of the first execution entity and the address of the stack memory.

Patent Agency Ranking