主函数:
static void Main(string[] args)
{
Thread thread=new Thread(new ThreadStart(test));
thread.IsBackground = true;
thread.Start();
GC.Collect();
Console.ReadLine();
}
被调方法:
public static void test()
{
while(true)
{
/*对应业务操作*/
Thread.Sleep(60 * 5000); //60 *
}
}