Method and system for robust futexes
First Claim
Patent Images
1. A method of managing primitives, the method comprising:
- providing a data structure available in user-space, the data structure comprising at least one futex;
detecting a termination of a process;
searching the data structure for status of the at least one futex;
releasing the at least one futex in response to status of the at least one futex being held;
setting a flag for at least one futex; and
notifying at least one process waiting for the released at least one futex.
1 Assignment
0 Petitions
Accused Products
Abstract
An embodiment relates to a method of managing primitives. The method includes providing a data structure available in user-space where the data structure comprises at least one futex. The method also includes detecting a termination of the process and searching the data structure for status of the at least one futex. The method further includes releasing the at least one futex in response to status of the at least one futex being held and setting a flag for at least one futex. The method further includes notifying at least one process waiting for the released at least one futex.
13 Citations
20 Claims
-
1. A method of managing primitives, the method comprising:
-
providing a data structure available in user-space, the data structure comprising at least one futex; detecting a termination of a process; searching the data structure for status of the at least one futex; releasing the at least one futex in response to status of the at least one futex being held; setting a flag for at least one futex; and notifying at least one process waiting for the released at least one futex. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method of managing exclusion primitives, the method comprising:
-
registering a first data structure and a second data structure by a process, wherein the first and second data structures are linked; acquiring a selected robust futex from a plurality of robust futexes; setting at least one flag in the second data structure, wherein the flag indicates the process is about to be locking the selected robust futex. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A system for managing primitives, the system comprising:
-
a first data structure configured to store futexes designated as being held; a second data structure configured to store a flag and linked to the first data structure, wherein the first and second data structures are in user space; and a futex module configured to setting at least one flag in the second data structure in response to acquiring a selected robust futex from a plurality of robust futexes, wherein the flag indicates the process is about to be locking the selected robust futex. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification