Linux2.6_Pipe实现结构.docVIP

  • 2
  • 0
  • 约4.42千字
  • 约 3页
  • 2018-06-27 发布于河南
  • 举报
Linux2.6_Pipe实现结构

Circular pipes One of the many changes slipped quietly into BitKeeper over the last week was this patch from Linuschanging how pipes are implemented internally. For a long time, pipes have used a single page to buffer data between the reader and the writer. If a process writes more than one page, it will block until the reader has consumed enough data to allow the rest to fit within the buffer. The 2.6.11 pipe implementation will be rather different. Pipes now use a circular buffer, as inexpertly shown in the diagram below: The curbuf pointer (its an integer index, actually) indicates the firs

文档评论(0)

1亿VIP精品文档

相关文档