concurrency - Using MPI, how can I synchronize the end of inter-dependent processes? -


ok, title sounds confusing concept not bad. basically, have 2 processes running (let's call them process 0 , process 1). both run function @ same time. while function running, need data each other. process 0 requests data process 1 , vice versa. since rely on each other, don't want 1 process finish before other. if process 0 finishes work, should continue checking requests process 1 (otherwise process 1 won't able finish). after both processes have finished work, should proceed.

i'm having trouble implementing this. right now, have each process send other processes notification when finishes (so process 1 sends notification process 2 when work done). have loop supposed continue until receives notification other processes. should loop exit , process continue. however, isn't working. processes keep going before others have finished. feel there's simpler way i'm not thinking of.

i'm complete newbie mpi, hope i've explained properly. also, needs work number of processes, not two. help!


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo