大家好,又见面了,我是你们的朋友全栈君。
Thread t = new Thread(new ThreadStart(ThreadFunction));
public void ThreadFunction()
{Console.WriteLine(“我是线程!”);}
Thread t = new Thread(() => Console.WriteLine(“我是线程!”));
Thread t = new Thread(delegate() {Console.WriteLine(“我是线程!”);});
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/139774.html原文链接:https://javaforall.cn