C
Chris
I have an app that is run periodically using Winsows Scheduled Tasks.
Occasionally, the app will still be running by the time the scheduled
task rolls around again.
I don't want the task scheduler to start another instance of my app,
but instead check for an existing instance. If there is already an
instance of the app running, then I want the second instance to signal
the first and then exit.
I know I can use a mutex to check for an existing instance of my app.
But how can I make the second instance signal the first? Would a
semaphore work in this instance?
Thanks for any assistance you can provide
Occasionally, the app will still be running by the time the scheduled
task rolls around again.
I don't want the task scheduler to start another instance of my app,
but instead check for an existing instance. If there is already an
instance of the app running, then I want the second instance to signal
the first and then exit.
I know I can use a mutex to check for an existing instance of my app.
But how can I make the second instance signal the first? Would a
semaphore work in this instance?
Thanks for any assistance you can provide