Problems with using Thread.Sleep for short times

前端 未结 5 880
执笔经年
执笔经年 2020-12-11 06:42

I have an app with 2 threads (now), but it seems that function Thread.Sleep() doesn\'t work very good. It sleeps threads but it takes much more time (for example- I want to

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-11 06:50

    The parameter passed into Thread.Sleep is a minimum time to sleep, not an exact time.

提交回复
热议问题