【发布时间】:2011-03-27 15:00:44
【问题描述】:
我有两个数组列表。即ExistingProcess和CurrentProcess。
ExistingProcess 数组列表包含此应用程序启动时正在运行的进程列表。
CurrentProcess 数组列表在一个线程中,用于获取系统中一直运行的进程。
每次 currentProcess arraylist 让当前进程运行时,我想与 ExistingProcess arraylist 进行比较并显示在消息框中,例如,
Missing process : NotePad [If notepad is closed and the application is launched]
New Process : MsPaint [if MSPaint is launched after the application is launched]
基本上这是两个arraylist的比较,以找出在我的C#应用程序启动后启动的新进程和关闭的进程。
【问题讨论】:
标签: c# comparison arraylist