다른 프로세스 기동

참고 

http://www.cnblogs.com/jackdong/archive/2011/03/30/2000374.html

Process

ProcessStartInfo

StreamWriter writer = null;
Stream outStream = Console.OpenStandardOutput();
writer = new StreamWriter(outStream);

int n = 0;
while (n <= 10)
{
Thread.Sleep(1000);
writer.WriteLine(p.Id + ":" + n.ToString());
writer.Flush();
n++;
}
writer.Close();
Environment.ExitCode = 0;

--> FileSystemWatcher:디렉터리 또는 디렉터리의 파일이 변경되면 이벤트를 발생시킵니다.
--> EventWaitHandle / AutoResetEvent / ManualResetEvent
--> Mutex
--> lock
--> Stopwatch

原文地址:https://www.cnblogs.com/ok519/p/6479308.html