首页> 外国专利> SYNCHRONIZING A CURSOR BASED ON CONSUMER AND PRODUCER THROUGHPUTS

SYNCHRONIZING A CURSOR BASED ON CONSUMER AND PRODUCER THROUGHPUTS

机译:基于消费者和生产者的思想同步光标

摘要

A computer-implemented method includes writing, by a producer, data to one or more buffers. The one or more buffers include a plurality of cells and together form a circular buffer, and an input cursor indicates which cell of the plurality of cells the producer writes to. The method further includes reading, by a consumer, data from the one or more buffers, where an output cursor indicates which cell of the plurality of cells the consumer reads from. It is detected that the consumer is overrun by the producer. A throughput of the consumer is compared to a throughput of the producer, responsive to detecting that the consumer is overrun by the producer. The output cursor is synchronized to a new position, by a computer processor, where the new position is selected based on comparing the throughput of the consumer to the throughput of the producer.
机译:一种计算机实现的方法,包括由生产者将数据写入一个或多个缓冲区。一个或多个缓冲器包括多个单元,并且一起形成循环缓冲器,并且输入光标指示生产者将多个单元写入哪个单元。该方法还包括由消费者从一个或多个缓冲器读取数据,其中输出光标指示消费者从多个单元中的哪个单元读取。检测到消费者被生产者超越。响应于检测到消费者被生产者超支,将消费者的吞吐量与生产者的吞吐量进行比较。通过计算机处理器将输出光标同步到新位置,在该位置基于比较消费者的吞吐量和生产者的吞吐量来选择新位置。

著录项

  • 公开/公告号US2018225064A1

    专利类型

  • 公开/公告日2018-08-09

    原文格式PDF

  • 申请/专利权人 INTERNATIONAL BUSINESS MACHINES CORPORATION;

    申请/专利号US201815945216

  • 发明设计人 ANTHONY T. SOFIA;

    申请日2018-04-04

  • 分类号G06F3/06;

  • 国家 US

  • 入库时间 2022-08-21 12:55:38

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号