Best way to wait for a process to appear?
Posted: Sat Jul 18, 2009 3:17 pm
I want to perform a function (set the thread priority) for a particular process thread but I need to wait for that process to appear before doing so, then I'll get the process ID. After getting the process ID I will then set the thread priority.
What is the most reliable and best way to wait for that process to appear?
I already know how to get the PID, I just need a good way to wait for it. I know I probably need to do some type of loop or something, but whats the best way to do that? Wait, Until, etc....? I really need it to be very light on CPU time and very small memory foot print wise.
What is the most reliable and best way to wait for that process to appear?
I already know how to get the PID, I just need a good way to wait for it. I know I probably need to do some type of loop or something, but whats the best way to do that? Wait, Until, etc....? I really need it to be very light on CPU time and very small memory foot print wise.