Accession Number:

ADA626969

Title:

Waiting on More than 64 Handles

Descriptive Note:

Final rept.

Corporate Author:

ARMY ARMAMENT RESEARCH DEVELOPMENT AND ENGINEERING CENTER PICATINNY ARSENAL NJ

Personal Author(s):

Report Date:

2015-10-01

Pagination or Media Count:

10.0

Abstract:

It s often necessary for a Windows based program to wait on a handle to a thread or some other resource during its execution. Occasionally, it s necessary for a program to wait on many handles at one time. If the number of handles exceeds MAXIMUMWAITOBJECTS, which is currently defined as 64, then some extra code must be written to deal with this. The need to wait on more than 64 handles was first encountered while upgrading some old software to run more efficiently by breaking down tasks to run in multiple worker threads. Almost 200 threads were spawned and then it was found that there was a maximum number of handles that could be waited on. The maximum was set by a global definition of MAXIMUMWAITOBJECTS, which equals 64. All of the threadstasks needed to be completed first in order to report the completion of the process to the calling function.

Subject Categories:

  • Computer Programming and Software

Distribution Statement:

APPROVED FOR PUBLIC RELEASE