I have a stream data input of 192kHz througt streaming channel and the functions elabora1() and elabora2() take 3.5us each to be executed. They cannot be executed serially.
I solved in this manner with 4 threads:
Code: Select all
________ ___________________ ________ | |-->|Thread_2:elabora1()|-->| | Chan-->|Thread_1| |___________________| | |-->Chan | | ___________________ |Thread_4| |________|-->|Thread_3:elabora2()|-->|________| |___________________|
The problem is that I have only 2 threads avaiable, and I asked to forum if there is possible to do as explain in the post.
It seemed to me that at least logically it was possible.