📅  最后修改于: 2022-03-11 14:48:57.208000             🧑  作者: Mango
Process[] workers = Process.GetProcessesByName("worker")
foreach (Process worker in workers)
{
worker.Kill();
worker.WaitForExit();
worker.Dispose();
}