Most programming languages use the recipe/script/story metaphor. The computer follows the steps in the recipe to get the desired results.
Parallel programming adds more engineering work after the recipe/story/script is complete. You need to create an assembly line for the recipe. Instead of having one processor work on the steps itself, you need to split up the steps for each factory worker to perform one step. You can separate them with queues or synchronize them on mutexes. As you add or remove workers, you need to redo the assembly line for optimal efficiency.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment