Thread timeout in c#

前端 未结 7 695
春和景丽
春和景丽 2021-01-11 18:41

I\'m new to threading in C#. Is there anyway of setting a timeout for a thread without blocking the calling thread (in C# 3.5)?

If not, is it logical to execute a fu

7条回答
  •  情歌与酒
    2021-01-11 19:40

    See this: http://www.techtalkz.com/c-c-sharp/111717-thread-timeout.html

    Check out the TimeSpan method http://msdn.microsoft.com/en-us/library/23f7b1ct.aspx

提交回复
热议问题