×

Method or system for access to shared resource

  • US 10,203,995 B2
  • Filed: 11/22/2013
  • Issued: 02/12/2019
  • Est. Priority Date: 11/22/2013
  • Status: Active Grant
First Claim
Patent Images

1. A method comprising:

  • performing read and write operations on a non-locked portion of a sharable memory, the performing the read and write operations comprising;

    determining a state of a flag for the non-locked portion of the sharable memory;

    at least partially in response to determining that the state of the flag comprises a default state, incrementing a counter tracking a number of concurrent tasks accessing the non-locked portion of the sharable memory;

    accessing the non-locked portion of the sharable memory to execute a portion of a first particular task involving reading from the non-locked portion of the sharable memory at a time at which the non-locked portion of the sharable memory is accessible to more than one of the concurrent tasks to perform one or more read operations on the non-locked portion of the sharable memory at least partially in response to evaluating whether other tasks are currently performing one or more read operations from the non-locked portion of the sharable memory based, at least in part, on a value stored in the counter;

    decrementing the counter tracking the number of concurrent tasks accessing the non-locked portion of the sharable memory after completion of the portion of the first particular task;

    at least partially in response to determining that the state of the flag comprises a non-default state, waiting to execute one or more portions of at least a second particular task involving access to the non-locked portion of the sharable memory until the state of the flag is changed to comprise the default state;

    accessing the non-locked portion of the sharable memory location comprising a third particular task; and

    wherein at least partially in response to determining that the state of the flag comprises the default state and that the third particular task involves writing to the non-locked portion of the shared memory;

    toggling the state of the flag to the non-default state, andwaiting to perform the third particular task until the counter tracking the number of concurrent tasks has a value of zero.

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