C#同一个进程执行一次的解决方案

        System.Threading.Thread th1;
        public void TestThread()
        {
            if (th1 == null || !th1.IsAlive)
            {
                th1 = new System.Threading.Thread(要执行的方法);
                th1.IsBackground = true;
                th1.Start();
            }
        }