Organizational Research By

Surprising Reserch Topic

difference between System.Threading.Timer and Thread.Sleep() in ASP.NET c#

I am considering whether to use a System.Threading.Timer or Thread.Sleep in my ASP.NET Web Application. I looked for the differences of them. Period or the Sleep will be 100ms. AFAIK if I use a Timer it will not block running thread, but Sleep will block running thread.

Since the interval is very small, would it be better to choose Thread.Sleep(150) ?

Edit: I tend to use it like a timer on not thread pool thread. I know Timers will be run on thread pool, but I don't want to keep thread pool thread for such an operation

asked May 9, 2015 in Asp.Net by rajesh
0 votes

Related Hot Questions

1 Answer

0 votes
answered May 9, 2015 by rajesh