2023年12月28日 星期四

多執行緒使用方式

 C# .net


//Dec.28, 2023 modify this function to apply muti thread.

ThreadPool.QueueUserWorkItem(_ =>

{});


參考:

https://learn.microsoft.com/zh-tw/dotnet/api/system.threading.threadpool.queueuserworkitem?view=net-7.0&WT.mc_id=DOP-MVP-37580

https://blog.darkthread.net/blog/threadpool-thread-management/

沒有留言: