如何正确终止正在运行的子线程

2025-05-20 04:42:14
推荐回答(1个)
回答1:

我的代码是这样的。。在多线程的子线程的调用方法里这样运行gethaha.exe,str1 是传递过来的参数。。 Process process = new System.Diagnostics.Process(); process.StartInfo.FileName = "gethaha.exe"; process.StartInfo.Arguments = str1