Hi,
Need expert suggestions on the below:
I have around 20 threads running all, almost all the threads have while(1),
Question is, how should I handle code in while(1) to optimize CPU execution, so far I do not have any timing related issues, but it’s just my concern as the code/threads grow up…
while(1)
{
if(flag) {
do_something();
}
}