trsh
Project about minimizing costs in garbage collection in Montevideo, Uruguay, using Evolutionary Algorithms
- 18
- C++
- 4 y ago
Project about minimizing costs in garbage collection in Montevideo, Uruguay, using Evolutionary Algorithms
In this task, we had to write a multi-threaded MPICH program, that will solve the consensus problem. If all the slave (child) processes agree on a single decision, then the processes will terminate displaying consensus reached.
In this task, I wrote the code using both OpenMP and MPI inorder to parallelize it. What it does is that the master process distributes a chunk of number equally among the slave processes. Each slave process then searches for the number to find. When one slave process finds the number, it sends a message to the master process who then sends a "terminating message" to the slave processes who then