Nested resource control using locking and unlocking routines with use counter for plural processes
First Claim
Patent Images
1. A method of controlling a process lock on a resource, said method comprising:
- nesting lock requests within a number of programs comprising a process;
maintaining said process lock through incrementing and decrementing a use counter from the initial process lock, during execution of a program, and calling up other programs within said process until said use counter is restored to its initial state prior to releasing said initial process lock.
1 Assignment
0 Petitions
Accused Products
Abstract
A mechanism allowing nested resource locks among a plurality of related programs is provided by means of a lock counter which is incremented and decremented as programs LOCK and UNLOCK a resource but the resource is not released until a count is zero. A separate LOCK counter is provided for each resource in the system.
61 Citations
8 Claims
-
1. A method of controlling a process lock on a resource, said method comprising:
-
nesting lock requests within a number of programs comprising a process; maintaining said process lock through incrementing and decrementing a use counter from the initial process lock, during execution of a program, and calling up other programs within said process until said use counter is restored to its initial state prior to releasing said initial process lock.
-
-
2. A method of serializing access to a resource by a plurality of programs belonging to a common process comprising the steps of:
-
(a) defining a convention lock counter for association with a process; (b) incrementing said counter whenever one of the programs in the process requests a lock; (c) decrementing said counter whenever one of said programs requests an unlock; and (d) releasing said resource only when said convention lock counter is zero.
-
-
3. A system for providing serialized access to a resource by a plurality of related programs in a multi-tasking environment including:
-
convention lock counter means associated with the resource; means associated with said convention lock counter for incrementing said counter whenever a program requests a lock; means associated with said convention lock counter for decrementing said counter whenever one of said programs requests an unlock; and means responsive to said programs and associated with said convention lock counter for releasing said resource for access by a program unrelated to the related programs only when said convention lock counter is zero. - View Dependent Claims (4, 7)
-
-
5. In a multi-tasking interactive environment system means for controlling allocation of a plurality of resources among a plurality of processes where each process may encompass a plurality of routines which can request locks on a resource including:
control means for granting all requests for locks on a resource from one process before granting any requests from a different process. - View Dependent Claims (6, 8)
Specification