Waiting on More than 64 Handles

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 MAXIMUM_WAIT_OBJECTS, 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 MAXIMUM_WAIT_OBJECTS, which equals 64. All of the threads/tasks needed to be completed first in order to report the completion of the process to the calling function.

Open PDF

Document Details

Document Type
Technical Report
Publication Date
Oct 01, 2015
Accession Number
ADA626969

Entities

People

  • Tom Nealis

Organizations

  • United States Army Armament Research, Development and Engineering Center

Tags

Communities of Interest

  • Weapons Technologies

DTIC Thesaurus Topics

  • Abstracts
  • Contracts
  • Control Systems
  • Department Of Defense
  • Engineering
  • Fire Control Systems
  • Fish
  • Governments
  • Information Operations
  • Instructions
  • New Jersey
  • Software Development
  • Standards
  • Systems Engineering
  • Technical Information Centers

Readers

  • Military History of the United States in the 20th Century.
  • Parallel and Distributed Computing.
  • Systems Analysis and Design