I am fairly new to MPI.I have a few queries regarding spawning processes that I am listing below:

a.       How can processes send data to a spawned process?

b.      Can any process (that is not a parent process) send data to a spawned process?

c.       Can MPI_Send or MPI_Recv be used to communicate with a spawned process?

d.      Would it be possible in MPI to tell which processor of a cluster a process should be spawned?


Looking forward to your reply. Would much appreciate if you could please include code snippets for the same.


Many thanks and best regards,