We are using MNI to spawn multiple instances of a process. Question, how can the

We are using MNI to spawn multiple instances of a process. Question, how can the parent process get the id's of the active sub processes.
Usecase - In certain scenarios, the sub processes have to be terminated by sending a message from the parent process....

OriginalPostID-103591

OriginalPostID-103591

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer
    I would recommend instead passing a byreference() array of booleans (basically a list of flags, one for each instance you are kicking off) to the subprocesses. The sub-process can then have a rule event that triggers, and then terminates itself, if the flag is set. Without understanding your exact use case, you could determine a way to work with this framework. It would avoid the need to use a lot of process-to-process messaging. Since these processes are directly related, byreference values can be used instead.
Reply
  • 0
    Certified Senior Developer
    I would recommend instead passing a byreference() array of booleans (basically a list of flags, one for each instance you are kicking off) to the subprocesses. The sub-process can then have a rule event that triggers, and then terminates itself, if the flag is set. Without understanding your exact use case, you could determine a way to work with this framework. It would avoid the need to use a lot of process-to-process messaging. Since these processes are directly related, byreference values can be used instead.
Children
No Data