Pthreads - Fix small issue with Pthreads Script slowdown during thread Submit
Budget: $25 – $50 USD
Hello,
I have a pthreads script that runs in a foreach loop and am currently experiencing a slowdown when submiting each thread to pool , as each new opened thread takes an average of 0.02seconds which is actually 10x longer than the rest of the loop up to that point .
Since I am running 1000 iterations during each loop, this ends up resulting in the whole loop taking over 1minute to finish, meaning the threads don't all run simultatenously and greatly impact the multithreaded purpose of the script .
I need someone experienced in Pthreads to fix this for me so that opening each thread doesn't take so long (assuming there is a fix) , as I want to run as many threads as possible simultaneously or with the minimum possible delay between them .
I have a pthreads script that runs in a foreach loop and am currently experiencing a slowdown when submiting each thread to pool , as each new opened thread takes an average of 0.02seconds which is actually 10x longer than the rest of the loop up to that point .
Since I am running 1000 iterations during each loop, this ends up resulting in the whole loop taking over 1minute to finish, meaning the threads don't all run simultatenously and greatly impact the multithreaded purpose of the script .
I need someone experienced in Pthreads to fix this for me so that opening each thread doesn't take so long (assuming there is a fix) , as I want to run as many threads as possible simultaneously or with the minimum possible delay between them .