The problem is created several process and start them using process.start()
and now i have to move these processes between states.
but the thing is I cant use the Thread.Suspend()
i think.
So how can I suspend these processes and then resume them?
private void button1_Click(object sender, EventArgs e)
{
var process1 = new Process();
var process2 = new Process();
var process3 = new Process();
process1.StartInfo.FileName = "proc1";
process2.StartInfo.FileName = "proc2";
process3.StartInfo.FileName = "proc3";
process1.Start();
process2.Start();
process3.Start();
}
these 3 processes are C# programs (.exe) that I created to read and write into different files.