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
Hi,
Was looking for some examples of heartbeats and found your code. I wonder, have you found any heartbeat implementation that can survive high CPU scenarios? So far, the only approach that seems to survive relatively high cpu consumption is having a thread (not from threadpool), that does an infinite loop and SpinWait(few ms) inside. Other than that, I've tried Threading.Timer, Timers.Timer, an await Task.Delay(ms), and Quartz.Net scheduler. All those approaches fail under heavy load. I wonder what your opinion is on this matter?
The text was updated successfully, but these errors were encountered:
Hi,
Was looking for some examples of heartbeats and found your code. I wonder, have you found any heartbeat implementation that can survive high CPU scenarios? So far, the only approach that seems to survive relatively high cpu consumption is having a thread (not from threadpool), that does an infinite loop and SpinWait(few ms) inside. Other than that, I've tried Threading.Timer, Timers.Timer, an await Task.Delay(ms), and Quartz.Net scheduler. All those approaches fail under heavy load. I wonder what your opinion is on this matter?
The text was updated successfully, but these errors were encountered: