重新启动一个线程来执行那个计算量大的函数。
using System.Threading;
Thread mythread= new Thread(new ThreadStart(this.mycomplexFunction));
mythread.start();
其中new threadstart 是新线程的代理(delegate system.threading.threadstart)
mycomplexFunction 是那个计算量大的函数;
这样,系统会建立一个新线程,执行你的mycomplexFunction函数结束线程自动消失;班门弄斧,请多指教!!