Interprocess message queue
    1.
    发明授权
    Interprocess message queue 失效
    进程间消息队列

    公开(公告)号:US5371850A

    公开(公告)日:1994-12-06

    申请号:US870819

    申请日:1992-04-20

    IPC分类号: G06F9/46 G06F13/00

    CPC分类号: G06F9/546

    摘要: The interprocess message queue operates in a multiprocessing environment to ensure that interprocess messages sent from an originating task do not overflow the destination task resource pipe. To prevent message overflow, the destination task creates a message queue when a communication session is originated and populates this message queue with n message reserved for the originating task. Each time the originating task wishes to send a message to the destination task, the originating task first retrieves one of the reserved messages from the destination task message queue. Once the message is retrieved from the message queue, the originating task is assured that memory space is available in the resource pipe to send a message. When the destination task receives the message, the destination task reads the message and flags the message as old, thereby allowing another message to be sent, since the originating task can now remove this old message from the message queue to make room for a new message. In this way, the destination task resource pipe never overflows.

    摘要翻译: 进程间消息队列在多处理环境中运行,以确保从始发任务发送的进程间消息不会溢出目标任务资源管道。 为了防止消息溢出,当发起通信会话时,目的地任务创建消息队列,并填充该消息队列,并为原始任务保留n个消息。 每次始发任务希望向目的地任务发送消息时,始发任务首先从目的地任务消息队列中检索保留消息之一。 一旦从消息队列中检索到消息,就可以确保始发任务在资源管道中可用于发送消息的内存空间。 当目的地任务接收到消息时,目的地任务读取消息并将消息标记为旧,从而允许发送另一个消息,因为始发任务现在可以从消息队列中移除该旧消息以为新消息腾出空间 。 这样,目标任务资源管道永远不会溢出。