Claims
- 1. A system for managing access by a user to a reusable resource, comprisingan integer pool; a control structure primed selectively for storing an integer available in said integer pool or indicia specifying that no integer is available in said integer pool; a get function for obtaining an integer from said integer pool, said get function accessing said control structure responsive to a request to allocate a single unique integer to satisfy or reject said request without searching said integer pool; and put means for returning said single unique integer to said integer pool.
- 2. A method for managing access by a user to a reusable resource, comprising the steps of:establishing an integer pool; priming a control structure selectively to store an integer available in said integer pool or indicia specifying that no integer is available in said integer pool; responsive to a user request for an unique integer from said integer pool for exclusive use by said user, accessing said control structure to obtain said unique integer; and responsive to release by said user of said unique integer, returning said unique integer to said integer pool.
- 3. A program storage device readable by a machine, tangibly embodying a program of instructions executable by a machine to perform method steps for storing signals for controlling the operation of a computer to manage use of reusable resources, said method steps comprising:establishing an unordered integer pool; priming a control structure to store an integer available in said unordered integer pool or indicia specifying that no such integer is available; responsive to a user request for an integer from said unordered integer pool, obtaining a single unique integer from said control structure for exclusive use by said user; and responsive to release by said user of said single unique integer, returning said single unique integer to said unordered integer pool; thereby allocating said single unique integer to said user upon request without searching said unordered integer pool.
- 4. An article of manufacture comprising:a computer useable medium having computer readable program code means embodied therein for managing use of reusable resources, the computer readable program means in said article of manufacture comprising: computer readable program code means for causing a computer to effect establishing an unordered integer pool; computer readable program code means for causing a computer to effect responsive to a user request, rejecting said user request or allocating a single unique integer from a control structure primed to store an available integer in said unordered integer pool for exclusive use by said user, thereby satisfying or rejecting said request without searching said unordered integer pool; and computer readable program code means for causing a computer to effect responsive to release by said user of said single unique integer, returning said single unique integer to said unordered integer pool.
- 5. A computer program element for controlling the operation of a computer to perform method steps for managing use of reusable resources, said method steps comprising:establishing an unordered integer pool; responsive to a user request, obtaining a single unique integer from a control structure associated with said unordered integer pool for exclusive use by said users; responsive to providing an integer N as said single unique integer to said user from said control structure, priming said control structure with a new integer from the Nth position of said unordered integer pool; and responsive to release by said user of said single unique integer, returning said single unique integer to said integer pool.
CROSS-REFERENCE TO RELATED APPLICATIONS
This is a divisional application of U.S. patent application Ser. No. 08/820,996, now U.S. Pat. No. 5,905,889, filed Mar. 20, 1997.
The following U. S. patent applications relate in certain respects to the system and method of the invention, the teachings of which are incorporated herein by reference.
U.S. patent application Ser. No. 08/820,181, still pending, filed Mar. 14, 1997 by G. W. Wilhelm, Jr. for Stationary Queue for Scarce Resource Management.
U.S. patent application Ser. No. 08/731,809, now U.S. Pat. No. 5,901,291, filed Oct. 21, 1996 by J. W. Feeney, et al. for Method and Apparatus for Maintaining Message Order for Multi-user FIFOs.
U. S. patent application Ser. No. 08/734,946, now U.S. Pat. No. 6,072,781, filed Oct. 22, 1996 by J. W. Feeney at al. for Multi-tasking Adapter for Parallel Network Applications.
US Referenced Citations (14)