Provided are a method, system, and program for querying a plurality of
adaptors in a system. A request is received to determine connection
information for the adaptors in the system. A master task spawns a
plurality of tasks to query the adaptors. Each spawned task updates
adaptor information with information gathered from querying the adaptor.
If no tasks are available to query at least one adaptor that has not been
queried, then the master task queries one adaptor and updates the adaptor
information with information gathered by querying the adaptor.