Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The MultiThreadUtils routine in the core UIMA testing code is intended to run multiple threads of tests in parallel. It was doing this by creating some number of threads, and starting them. The intent was that these threads run together, and experience some contention.
When measured on a 2 GHz Intel i7 Windows machine, the time to start the thread seemed to be about 1 millisecond. Which meant that unless the test took longer than a millisecond, no contention would happen.
Change this to have the threads all "started", but then wait for a "go" notification, given after all threads have completed their startup.