Question: Write a java program, creating three threads, to sort two arrays and merge them into a third array. More specifically: Create a thread to sort
Write a java program, creating three threads, to sort two arrays and merge them into a third array. More specifically:
- Create a thread to sort the first array.
- Create a thread to sort the second array.
- Create a thread to merge the arrays into the third array.
- Let the main method prints the merged array.
You must call the two sorter threads together. In other words, if we name these threads sorta, sortb, and merge, you must call the start methods in the following sequence:
sorta.start();
sortb.start();
Some java code
merge.start();
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
