首页> 外国专利> Control scheme for segmented buffers based on a shared reference count

Control scheme for segmented buffers based on a shared reference count

机译:基于共享引用计数的分段缓冲区的控制方案

摘要

For enabling shared use of a buffer and arbitrarily selectable segments thereof, three simple operators are provided, and a locator is issued as a token for each access right to the buffer or any partial segment. By a GET operator, a first user requests a basic buffer (B) and in turn receives a locator (L0) defining size and location of said basic buffer. By a REPLICATE operator, any holder of a locator can request another access right to a selectable segment of the basic buffer, and in turn receives a locator (Li) defining size and location of the segment. Counting the issued locators, a single reference count (CNT) is maintained for all access rights to the whole buffer or any segment. Locators are relinquished by a RETURN operator, which causes decreasing of the reference count. Neither memory management nor the first user need to keep a record of the segmentation or of issued access rights.
机译:为了能够共享使用缓冲区及其任意可选择的段,提供了三个简单的运算符,并且针对每个对缓冲区或任何部分段的访问权限,发出了一个定位器作为令牌。通过GET运算符,第一用户请求基本缓冲区(B),并依次接收定义所述基本缓冲区的大小和位置的定位符(L0)。通过REPLICATE运算符,定位符的任何持有者都可以请求对基本缓冲区的可选段的另一种访问权限,并依次接收定义该段的大小和位置的定位符(Li)。对发出的定位符进行计数,对于整个缓冲区或任何段的所有访问权限,将保留一个参考计数(CNT)。定位符由RETURN运算符放弃,这导致引用计数减少。内存管理和第一个用户都不需要保留分段记录或已发布的访问权限。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号