You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the IConnecitonHandler and children have sleep statements within them to prevent CPU pinning, the IWorker objects used to do the actual work for IAMQPWorker instances do not. These result in CPU pinning, causing the CPU usage to read very high when nothing is actually being done. Even worse it eats up energy.
Insert a std::this_thread::sleep_for(std::chrono::milliseconds(10)) into the root IWorker and FWorker classes to make them realistic to use for anything.
The text was updated successfully, but these errors were encountered:
While the
IConnecitonHandler
and children have sleep statements within them to prevent CPU pinning, theIWorker
objects used to do the actual work forIAMQPWorker
instances do not. These result in CPU pinning, causing the CPU usage to read very high when nothing is actually being done. Even worse it eats up energy.Insert a
std::this_thread::sleep_for(std::chrono::milliseconds(10))
into the rootIWorker
andFWorker
classes to make them realistic to use for anything.The text was updated successfully, but these errors were encountered: