That depends on several things.
- What kind of application is this? Console, windows service, winforms?
- Is your code multithreaded? If you call job XXX with a blocking call, a file watch event isn't likely to get picked up because the process is blocked and windows messages can't get through.
By your description, it doesn't sound like you are actually using a live file watcher, but rather a scheduled file checker. This will have a different affect as well. If the system that schedules the executions can fire off two instances of the file checker, then you could have simultaneous processes running. You're going to need to provide more information in order for us to guess what will happen.
Wouldn't it be easier to just do some testing? Instead of scheduling for 20 minutes, how about 1. Make a "job" that runs for 1 minute and 30 seconds and see what happens.
-Peter
compiledthoughts.com