One way that might work for you is to turn off auto-start and use a script to turn on the process and threads.
hcienginerun -p processName -s ‘thread1, thread2’
hcienginerun -p processName
hcicmd -p processName -c ‘thread1 pstart’
hcicmd -p processName -c ‘thread2 pstart’
As Johnny explained above.
We need thread 1 start first and use the output of thread 1 to be input file for thread 2.
Will example 2 start thread 1 first and finish what it suppose to do before thread 2 kicks in and use thread 1 out put?
In other word, will thread 2 wait until thread 1 is finished and done before thread 2 starts?
On example 2.