So I have to pause a process for a second and then Start the other one, So basically I have to pause and resume this processes.
Also I have to use a Stack. Have to Save the process as it's executing so I can resume it. Has to have an ID and show the Priority.
Anybody knows what I have to use?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Threading;
using System.Runtime.InteropServices;
namespace Práctica_2
{
class Program
{
static void Main(string[] args)
{
Process Contador = new Process();
Process Datos = new Process();
Process Google = new Process();
Process Numero = new Process();
Process Finalizar = new Process();
try
{
System.Diagnostics.Process.Start("C:\\Users\\M-00\\Desktop\\Práctica 2\\Datos\\Datos\\obj\\Debug\\Datos.exe");
Datos.Start();
Thread.Sleep(250);
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
try
{
System.Diagnostics.Process.Start("C:\\Users\\M-00\\Desktop\\Práctica 2\\Contador\\Contador\\obj\\Debug\\Contador.exe");
Contador.Start();
Datos.WaitForExit(250);
Thread.Sleep(500);
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
try
{
System.Diagnostics.Process.Start("C:\\Users\\M-00\\Desktop\\Numeros\\Numeros\\obj\\Debug\\Numeros.exe");
Numero.Start();
Datos.WaitForExit(500);
Thread.Sleep(750);
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
}
}