11-17-2011 08:59 AM
I am looking to multithread multiple tests in paralllel on one UUT. I looked in the main site and all examples are on zip files that I seem to not be able to successfully download from the site. Does anyone have any file examples or white papers on this subject that I can view???
Solved! Go to Solution.
11-17-2011 01:26 PM
put one test in a sub sequence. then call that subsequence using New Thread as the Execution Options:
11-18-2011 08:41 AM
11-18-2011 09:00 AM
By synchronization, for example, you mean that if I want two sequences to run simultaneously, I would create a rendezvous just before those two, use the method of new threads, then place a rendevuous right after them?
11-18-2011 01:37 PM
That is one approach to it.
Doug was talking about using the wait step. When you create the thread from you sequence call you can store that thread handle to an object reference (that's in the button next to the dropdown from the picture I put in here, the button has a hammer and stuff on it). The wait function can wait for a thread to return instead of waiting for a specific time.
However, if you want them to start at the same time a rondezvous is the correct option. You can also rondezvous to stop too.
11-19-2011 10:11 AM
You also should use Lock steps or the lock setting on a step whenever you need to access any resources or data shared between the threads if access to such resources and data aren't already protected in some way.
-Doug