METHOD OR SYSTEM FOR ACCESS TO SHARED RESOURCE
First Claim
Patent Images
1. A method of permitting a particular task access to a sharable resource capable of being accessed by multiple tasks executing concurrently with respect to the sharable resource, the method comprising:
- determining the state of a flag for the sharable resource;
executing the following for a default state;
incrementing a counter tracking the number of concurrent tasks accessing the sharable resource;
accessing the sharable resource to execute the portion of the particular task involving access to the sharable resource; and
decrementing the counter tracking the number of concurrent tasks accessing the sharable resource after completion of the portion of the particular task involving access to the sharable resource; and
executing the following for a non-default state;
waiting until the state of the flag comprises a default state by re-toggling.
9 Assignments
0 Petitions
Accused Products
Abstract
Methods and/or systems are provided that may be utilized to read from or write to a resource, such as a shared memory, for example.
-
Citations
20 Claims
-
1. A method of permitting a particular task access to a sharable resource capable of being accessed by multiple tasks executing concurrently with respect to the sharable resource, the method comprising:
-
determining the state of a flag for the sharable resource; executing the following for a default state;
incrementing a counter tracking the number of concurrent tasks accessing the sharable resource;
accessing the sharable resource to execute the portion of the particular task involving access to the sharable resource; and
decrementing the counter tracking the number of concurrent tasks accessing the sharable resource after completion of the portion of the particular task involving access to the sharable resource; andexecuting the following for a non-default state;
waiting until the state of the flag comprises a default state by re-toggling. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system, comprising:
-
one or more shared memories, a write flag, a read task counter; and a processor; the processor to toggle the state of the write flag, increment or decrement the task counter, and read to or write from the one or more shared memories in accordance with executing one or more threads concurrently. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. An article, comprising:
-
a storage medium comprising machine-readable instructions executable by a special purpose apparatus to permit a particular task access to a sharable resource capable of being accessed by multiple tasks capable of executing concurrently with respect to the sharable resource, the instructions further executable to;
determine the state of a flag for the sharable resource;
execute the following for a default state;
increment a counter to track the number of concurrent tasks to access the sharable resource;
access the sharable resource to execute the portion of the particular task that includes access to the sharable resource; and
decrement the counter after completion of the portion of the particular task; and
execute the following for a non-default state;
wait until the state of the flag comprises a default state as a result of a re-toggle. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification