Printer FriendlyEmail Article Link

iTest: In iTest how to synchronize multiple threads

Environment/Versions

Spirent iTest

Answer

In iTest we can synchronize multiple threads execution by using signal and waitthread actions.

 Example:

 There are 2 threads (A and B) working simultaneously.

During A is executed, we expect B is also executed.

When A is finished, we expect B is also finished.

 There are two better ways to synchronize multiple threads:

 1. Using signal actions (signal.fftc)

2. Using waitthread (sync_threads.fftc)

Please find the attached testcase(s) (signal.fftc and sync_threads.fftc) for reference

 

Attachments
Attachment


Product : iTest Enterprise