Program coded in C++ language
to solve the Consensus Problem
between Multiple Threads
using MPI
.
-
Use following command to
Compile the Code
:mpic++ main.cpp -o main
-
Use following commands to
Execute the Code
. Here 5 represents total number of processes to create:mpiexec -n 5 -f machinefile ./main