What type of mutex which when acquired doesn't hog CPU resources.
For my application I am currently using a ACE Thread Semaphore which is acquired for 2 minutes and after a timer expiry i gets released. I see that this is unnecessarily hogging CPU resources. Could any1 please recommend other way to do the same thing without hogging CPU resources when acquired.
Also, is there some way in which i spawn a thread say in idle mode when it is not doing anything until signaled, with an optimized CPU resource utilization.
|