Writing pseudocode for parallel programming

Charles Brunet picture Charles Brunet · Apr 7, 2011 · Viewed 17.2k times · Source

How do you write pseudo-code for parallel programming? Especially, how do you differentiate local and shared variables? How do you represent operations like scatter, gather, reduce, broadcast, and point-to-point communications? Is there some standards about that?

Answer

Larry Watanabe picture Larry Watanabe · Apr 17, 2011

Pseudo code is pretty much just English. So, you can use whatever is clear and unambiguous. It's not a programming language, so you don't need to represent operations like "scatter" .. you can just say "scatter".

There are no standards for pseudo-code, but good pseudo-code is simple and easy to understand.