Does Task.Delay make sense on a dedicated thread?
问题 I know that using Thread.Sleep in a task is a dumb idea, because it will block that thread in the thread pool. However, if I have a thread dedicated to something, created by new Thread(new ThreadStart(Foo)) , does Task.Delay still make sense? Nothing is going to use that thread anyhow. I am also wondering what exact effect a Task.Delay will have. It won't put the thread to sleep, so will it act as a spin wait? That would be much worse then a sleep. Wouldn't it be? 回答1: I am having difficulty