A system and method for managing simultaneous access to a scarce or serially
re-usable
resource by multiple process threads. A stationary queue is provided, including
a wait counter for counting the cumulative number of threads that have been temporarily
denied the resource; a satisfied counter for counting the cumulative number of
threads that have been denied access and subsequently granted access to said resource;
a sleep code routine responsive to the wait counter for generating a run identifier;
and a wakeup code routine responsive to the satisfied counter for generating the
run identifier.