Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about using Task.Run in ThreadTriggeredTaskRunHeartbeat #1

Open
LectorNoticio opened this issue Nov 30, 2016 · 0 comments
Open

Comments

@LectorNoticio
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant