×

Adaptive multi-threaded buffer

  • US 8,904,067 B2
  • Filed: 03/13/2012
  • Issued: 12/02/2014
  • Est. Priority Date: 03/13/2012
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • receive a request from a writer process executing on a processor to write data to a buffer;

    increment a writer index to a next slot in the buffer;

    reserve a first write slot for the writer process; and

    write data from the writer process to the first write slot;

    receive a request from a reader process to read data from the buffer;

    increment a reader index to reserve a read slot for the reader process;

    read the content of the read slot and set the slot content to null in an atomic manner;

    if the read slot content is null, then determine whether the buffer has been resized;

    if the buffer has been resized, increment the reader index;

    reserve a new read slot for the reader process; and

    read the content of the new read slot and set the slot content to null in an atomic manner.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×