【进程线程与同步】5.1 创建和销毁子进程

using System.Diagnostics;
using System.Threading;
class Program
{
    static void Main()
    {
        Process process = Process.Start("notepad.exe", "hello.txt"); //创建子进程,初始的进程为父进程
        Thread.Sleep(1000);//父进程的线程在等待1秒后,销毁子进程
        process.Kill();
    }
}

原文地址:https://www.cnblogs.com/zhangqs008/p/3618440.html