Question: Modify your assignment 2 solution to use FORK instead of FORALL to implement the parallel rank sort. You may use the posted solution to Assign
Modify your assignment solution to use FORK instead of FORALL to implement the
parallel rank sort. You may use the posted solution to Assign if necessary. If it has
not been posted because of late assignments still to be submitted, ask the TA for a
copy. Assume that only seven processors in addition to the main processor are
available and design the solution to run on plus the main processors. Set the
number of processors as a #define value so you can change the number of
processors. Also test your code with processors, but submit the processor
solution. Count the number of JOIN's that are executed and write them out after the
sorted display. For processors, the output should look something like this.
TS JD QS
TH H KD D D JC C AS S S QH H H
TD D KC C C JS S AH H H QD D D
TC C KS JH H AD D D QC C C
C C C C C C TC JC QC KC AC
D D D D D D D D TD JD QD KD AD
TH QH KH AH
TS JS QS KS AS
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
