I have an application with 4 threads, of which 2 are event-based and 2 are not event-based.
the problem is that I have to isolate threads based on 2 unrelated events, in which while (1) runs a loop that uses a huge cpu value, and this usage reaches even up to 100%,
I think that allocating these threads can reduce CPU usage,
Would it be a good idea if there is any other method called plz.
and I also want to know how to isolate threads.
thanx in advance.
source
share