bhu,
Maybe this is more complicated than it sounds but....
From what you said it sounds like you want to launch a bunch of executables
with different command-line parameters and that you want to make sure that no
executable is started with the same set of parameters.
Approach 1:
This seems easy enough to control if the executables are started together by
a script. Simply start all the executables at the same time and make sure in
the script to get the conditions you want.
Approach 2:
If you want each executable to verify that they are not running the same
parameters as other instances, then you’re going to have to set up
communication between the executables, at the beginning of the executable
have it check to see if that parameter set is being run. If it is then exit
and if it’s not then proceed.
The problem with Approach 2 is that depending on how you implement the
"checkin", the executables may be exposed to the same types of problems that
threads can experience. This makes Approach 2 potentially very complicated
and unreliable.
Can you elaborate more on your problem?
Thanks,
Kim Greenlee