A thread consistency support system 10 provides thread consistency from a
Connector Application Program Interface 50 that creates multiple threads
to a Thread-dependent Connector 40 that only allows a single thread to
link to that connector for all operations on that connector. The system
includes a Detection/Activation routine 20 that activates a Threading
MetaConnector routine 30 in response to the Detection/Activation routine
identifying a multi-threaded application 60 attempting to access a
Thread-dependent Connector 40. The Threading MetaConnector routine 30
interfaces between the Connector Application Program Interface 50 and the
Thread-dependent Connector 40. The Threading MetaConnector routine 30
establishes a connection handle for a single internal thread 80 with the
Thread-dependent Connector 40 that is returned to the Connector
Application Program Interface 50 of a calling multi-threaded application
60 in place of multiple requested thread connection handles. The
connection handle is established in response to the Threading
MetaConnector routine's receipt of multiple threads 70 from the Connector
Application Program Interface 50. The thread consistency support system
10 ensures that the same thread that initializes a connection from the
Thread-dependent Connector 40 is used for all subsequent operations
attempted by the multiple threads 70 from the application 60 with that
connector.