Add more MPI_Send and MPI_Recv wrappers.
Add one for master to send data. Add one for slave to send data. Change Slave_Get_Msg() to Slave_Get_Data(), which will pull in an array of up to 10 entries.
Add statement to deal with MSG_CONTINUE.
Send a default of continue back to the sender.
Add case to deal with done processors.
First, receive data from a running process. Then, hand it off to the finished process.
Add comments to MSG_CONTINUE handler.
Add end condition to Master_Loop().
When the number of completed processes is equal to the number of processes, then it's done.
Replace 10 with MAX_LEVEL.
Find every instance where 10 is used as a level comparison and replace it with MAX_LEVEL so that you can easily change how many exercises are in your set.
Add Parallel_Sets_Mixed().
Parallel_Sets_Mixed() starts MPI and distributes processes into Master and Slave roles.
Begin writing a Slave() function.
Every slave process should run this function. It should loop them through until they are done.
Complete exit condition of Master_Loop().
After Master_Loop() completes, the master will send out messages to all of the slaves telling them that they can finish.