比较System.Threading.Timer定义线程定时器,和System.Thread定义线程+while(true)循环,有什么区别,哪个性能更优?
死循环当然效率比较低,能不轮询就不要轮询。具体看做什么,你有没有能够接收通知的编程接口。