标签: c# multithreading iis
对于我的ASP应用程序,我需要为特定任务启动System.Threading.Thread。此线程只能有一个实例。 因此,在启动此线程之前,我需要检查它是否尚未由其他工作程序启动。
System.Threading.Thread
System.Diagnostics.Process.GetCurrentProcess().Threads是否还会检索所有由其他应用程序池工作程序启动的线程?
System.Diagnostics.Process.GetCurrentProcess().Threads